mirror of
https://github.com/php/php-src.git
synced 2025-01-02 08:54:04 +08:00
60a29791e4
Refactor the implemention, make codes clear
28 lines
444 B
PHP
28 lines
444 B
PHP
--TEST--
|
|
Try finally (call sequence test)
|
|
--FILE--
|
|
<?php
|
|
function foo () {
|
|
try {
|
|
echo "1";
|
|
try {
|
|
echo "2";
|
|
throw new Exception("ex");
|
|
} finally {
|
|
echo "3";
|
|
}
|
|
} finally {
|
|
echo "4";
|
|
}
|
|
}
|
|
|
|
foo();
|
|
?>
|
|
--EXPECTF--
|
|
1234
|
|
Fatal error: Uncaught exception 'Exception' with message 'ex' %s
|
|
Stack trace:
|
|
#0 %stry_finally_003.php(%d): foo()
|
|
#1 {main}
|
|
thrown in %stry_finally_003.php on line %d
|