dis-bench / src /php /php-src /Zend /tests /exceptions /bug64135.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
341 Bytes
--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) {
echo "Exception is thrown";
}
?>
--EXPECT--
Exception is thrown