mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
1c94ff0595
RFC: https://wiki.php.net/rfc/engine_exceptions_for_php7 Pending changes regarding naming of BaseException and whether it should be an interface.
18 lines
342 B
PHP
18 lines
342 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(BaseException $e) {
|
|
echo "Exception is thrown";
|
|
}
|
|
--EXPECT--
|
|
Exception is thrown
|