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