com php-src: Forgot test script: Zend/tests/bug64135.phpt
| From: | Xinchen Hui | Date: | Thu, 07 Feb 2013 15:49:35 +0000 |
| Subject: | com php-src: Forgot test script: Zend/tests/bug64135.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-71187@lists.php.net to get a copy of this message | ||
Commit: 7948eea6f9833d4dd97cd34af37465af9efcec78
Author: Xinchen Hui <laruence@php.net> Thu, 7 Feb 2013 23:49:35 +0800
Parents: ee825e0b42d9fec9b1f2e999b691c6eedf46fdd1
Branches: PHP-5.5
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7948eea6f9833d4dd97cd34af37465af9efcec78
Log:
Forgot test script
Changed paths:
A Zend/tests/bug64135.phpt
Diff:
diff --git a/Zend/tests/bug64135.phpt b/Zend/tests/bug64135.phpt
new file mode 100644
index 0000000..1c7b150
--- /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