Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 74f4b772aa
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (30 sloc) 0.73 kb
--TEST--
runkit_return_value_used() function
--SKIPIF--
<?php if(!extension_loaded("runkit")) print "skip";
?>
--FILE--
<?php
function two() {
echo 'two()\'s return value used: ';
var_dump(runkit_return_value_used());
}
function one() {
echo 'one()\'s return value used: ';
var_dump(runkit_return_value_used());
two();
$t = two();
}
one();
$o = one();
echo 'main()\'s return value used: ';
var_dump(runkit_return_value_used());
?>
--EXPECTF--
one()'s return value used: bool(false)
two()'s return value used: bool(false)
two()'s return value used: bool(true)
one()'s return value used: bool(true)
two()'s return value used: bool(false)
two()'s return value used: bool(true)
main()'s return value used: bool(false)
Jump to Line
Something went wrong with that request. Please try again.