mirror of
https://github.com/php/php-src.git
synced 2025-01-02 08:54:04 +08:00
75742d57eb
this is a enhancement of the fix for bug #64135
21 lines
468 B
PHP
21 lines
468 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--
|
|
Fatal error: Uncaught exception 'Exception' with message 'error!' in %sbug51394.php:%d
|
|
Stack trace:
|
|
#0 %sbug51394.php(%d): eh(8, 'Undefined varia%s', '%s', %d, Array)
|
|
#1 {main}
|
|
thrown in %sbug51394.php on line %d
|