mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
7aacc705d0
Closes GH-5958
19 lines
341 B
PHP
19 lines
341 B
PHP
--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
|