mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
16 lines
324 B
PHP
16 lines
324 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: Function name must be a string in %sbug51394.php on line 9 |