summaryrefslogtreecommitdiff
path: root/Zend/tests/exception_002.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/exception_002.phpt')
-rw-r--r--Zend/tests/exception_002.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/Zend/tests/exception_002.phpt b/Zend/tests/exception_002.phpt
new file mode 100644
index 0000000..25f0c61
--- /dev/null
+++ b/Zend/tests/exception_002.phpt
@@ -0,0 +1,19 @@
+--TEST--
+Testing exception and GOTO
+--FILE--
+<?php
+
+goto foo;
+
+try {
+ print 1;
+
+ foo:
+ print 2;
+} catch (Exception $e) {
+
+}
+
+?>
+--EXPECT--
+2