2010-04-01 19:36:56 +00:00
|
|
|
--TEST--
|
|
|
|
Bug #51394 (Error line reported incorrectly if error handler throws an exception)
|
|
|
|
--INI--
|
|
|
|
error_reporting=-1
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
function eh()
|
|
|
|
{
|
2020-02-03 21:52:20 +00:00
|
|
|
throw new Exception("error!");
|
|
|
|
return false;
|
2010-04-01 19:36:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
set_error_handler("eh");
|
|
|
|
$a = $empty($b);
|
|
|
|
--EXPECTF--
|
2015-05-17 16:35:18 +00:00
|
|
|
Fatal error: Uncaught Exception: error! in %sbug51394.php:%d
|
2012-09-06 07:26:40 +00:00
|
|
|
Stack trace:
|
2019-10-01 11:20:42 +00:00
|
|
|
#0 %s(%d): eh(2, 'Undefined varia...', '%s', %d)
|
2012-09-06 07:26:40 +00:00
|
|
|
#1 {main}
|
2013-02-16 14:22:22 +00:00
|
|
|
thrown in %sbug51394.php on line %d
|