]> granicus.if.org Git - php/commitdiff
Forgot test script
authorXinchen Hui <laruence@php.net>
Thu, 7 Feb 2013 15:49:35 +0000 (23:49 +0800)
committerXinchen Hui <laruence@php.net>
Thu, 7 Feb 2013 15:49:35 +0000 (23:49 +0800)
Zend/tests/bug64135.phpt [new file with mode: 0644]

diff --git a/Zend/tests/bug64135.phpt b/Zend/tests/bug64135.phpt
new file mode 100644 (file)
index 0000000..1c7b150
--- /dev/null
@@ -0,0 +1,17 @@
+--TEST--
+Bug #64135 (Exceptions from set_error_handler are not always propagated)
+--FILE--
+<?php
+
+function exception_error_handler() {
+        throw new Exception();
+}
+
+set_error_handler("exception_error_handler");
+try {
+   $undefined->undefined();
+} catch(Exception $e) {
+    echo "Exception is thrown";
+}
+--EXPECT--
+Exception is thrown