summaryrefslogtreecommitdiff
path: root/Zend/tests/try_finally_004.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/try_finally_004.phpt')
-rw-r--r--Zend/tests/try_finally_004.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/Zend/tests/try_finally_004.phpt b/Zend/tests/try_finally_004.phpt
new file mode 100644
index 0000000000..08930a40c5
--- /dev/null
+++ b/Zend/tests/try_finally_004.phpt
@@ -0,0 +1,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