xref: /php-src/Zend/tests/try/try_finally_003.phpt (revision 25d327e5)
1--TEST--
2Try finally (call sequence test)
3--FILE--
4<?php
5function foo () {
6   try {
7      echo "1";
8      try {
9        echo "2";
10        throw new Exception("ex");
11      } finally {
12        echo "3";
13      }
14   } finally {
15      echo "4";
16   }
17}
18
19foo();
20?>
21--EXPECTF--
221234
23Fatal error: Uncaught Exception: ex %s
24Stack trace:
25#0 %stry_finally_003.php(%d): foo()
26#1 {main}
27  thrown in %stry_finally_003.php on line %d
28