1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 11:32:11 +02:00
Files
archived-php-src/Zend/tests/try/try_finally_010.phpt
Máté Kocsis 7aacc705d0 Add many missing closing PHP tags to tests
Closes GH-5958
2020-08-09 22:03:36 +02:00

32 lines
453 B
PHP

--TEST--
Try finally (function call in the finally block after exception)
--FILE--
<?php
function foo() {
echo "4";
}
function bar() {
try {
echo "2";
throw new Exception();
echo "x";
} catch (MyEx $ex) {
echo "x";
} finally {
echo "3";
foo();
echo "5";
}
}
try {
echo "1";
bar();
echo "x";
} catch (Exception $ex) {
echo "6";
}
echo "\n";
?>
--EXPECT--
123456