xref: /PHP-5.5/Zend/tests/catch_finally_002.phpt (revision 60a29791)
1--TEST--
2Try catch finally (basic test with return)
3--FILE--
4<?php
5function foo () {
6   try {
7     echo "try\n";
8     return 1;
9   } catch (Exception $e) {
10   } finally {
11     echo "finally\n";
12   }
13   return 2;
14}
15
16var_dump(foo());
17?>
18--EXPECTF--
19try
20finally
21int(1)
22