php-src/Zend/tests/bug64135.phpt

18 lines
338 B
Plaintext
Raw Normal View History

2013-02-07 15:49:35 +00:00
--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(Throwable $e) {
2013-02-07 15:49:35 +00:00
echo "Exception is thrown";
}
--EXPECT--
Exception is thrown