1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 05:51:02 +02:00

Merge branch 'PHP-5.5' into PHP-5.6

This commit is contained in:
Xinchen Hui
2015-03-11 08:20:03 +08:00

View File

@@ -21,7 +21,23 @@ try {
echo "Caught!\n";
}
try {
$f = function () {};
$f->__invoke(do_throw());
} catch (Exception $e) {
echo "Caught!\n";
}
try {
$t = new Test;
$f->__invoke($t->bar(Test::foo(do_throw())));
} catch (Exception $e) {
echo "Caught!\n";
}
?>
--EXPECT--
Caught!
Caught!
Caught!
Caught!