summaryrefslogtreecommitdiff
path: root/Zend/tests/try_finally_004.phpt
blob: 08930a40c524418928928802fd47895fb7c98c78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--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