mirror of
https://github.com/php/php-src.git
synced 2024-11-27 20:03:40 +08:00
60a29791e4
Refactor the implemention, make codes clear
15 lines
230 B
PHP
15 lines
230 B
PHP
--TEST--
|
|
Try finally (without catch/finally block)
|
|
--FILE--
|
|
<?php
|
|
function foo () {
|
|
try {
|
|
echo "3";
|
|
}
|
|
}
|
|
|
|
foo();
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot use try without catch or finally in %stry_finally_004.php on line %d
|