Commit:    7948eea6f9833d4dd97cd34af37465af9efcec78
Author:    Xinchen Hui <larue...@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


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to