mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
b29dc146b9
- Fixed bug #60909 (custom error handler throwing Exception + fatal error = no shutdown function)
22 lines
533 B
PHP
22 lines
533 B
PHP
--TEST--
|
|
Bug #51394 (Error line reported incorrectly if error handler throws an exception)
|
|
--INI--
|
|
error_reporting=-1
|
|
--FILE--
|
|
<?php
|
|
function eh()
|
|
{
|
|
throw new Exception("error!");
|
|
return false;
|
|
}
|
|
|
|
set_error_handler("eh");
|
|
$a = $empty($b);
|
|
--EXPECTF--
|
|
Warning: Uncaught exception 'Exception' with message 'error!' in %sbug51394.php:4
|
|
Stack trace:
|
|
#0 %sbug51394.php(9): eh(8, 'Undefined varia...', '%s', 9, Array)
|
|
#1 {main}
|
|
thrown in %sbug51394.php on line 4
|
|
|
|
Fatal error: Function name must be a string in %sbug51394.php on line 9 |