summaryrefslogtreecommitdiff
path: root/Zend/tests/try_finally_009.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/try_finally_009.phpt')
-rw-r--r--Zend/tests/try_finally_009.phpt23
1 files changed, 23 insertions, 0 deletions
diff --git a/Zend/tests/try_finally_009.phpt b/Zend/tests/try_finally_009.phpt
new file mode 100644
index 0000000000..b29930a75e
--- /dev/null
+++ b/Zend/tests/try_finally_009.phpt
@@ -0,0 +1,23 @@
+--TEST--
+Try finally (with for continue)
+--FILE--
+<?php
+function foo () {
+ for($i = 0; $i < 5; $i++) {
+ do {
+ try {
+ try {
+ } finally {
+ }
+ } catch (Exception $e) {
+ } finally {
+ continue;
+ }
+ } while (0);
+ }
+}
+
+foo();
+?>
+--EXPECTF--
+Fatal error: jump out of a finally block is disallowed in %stry_finally_009.php on line %d