Browse Source

Forgot test script

pull/272/head
Xinchen Hui 13 years ago
parent
commit
7948eea6f9
  1. 17
      Zend/tests/bug64135.phpt

17
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
Loading…
Cancel
Save