Arquivos
hhvm/hphp/test/quick/builtin_recurse.php
T
ptarjan 503f75d08b Rename test directories
These names don't make sense now that we run both suites the same
way.
2013-04-17 09:06:51 -07:00

25 linhas
580 B
PHP

<?php
function main() {
print "Test begin\n";
call_user_func_array("print_r", array("Hello!\n"));
call_user_func_array("call_user_func_array", array("print_r",
array("Hello!\n")));
# Throw an exception throw nested builtin calls.
function foo($s) {
print "In foo(\"".$s."\")\n";
throw new Exception("foo exception");
}
try {
call_user_func_array("call_user_func_array", array("foo", array("foo arg")));
} catch (Exception $e) {
print "Caught exception\n";
}
print "Test end\n";
}
main();