2010-04-02 03:36:56 +08:00
|
|
|
--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--
|
2015-05-18 00:35:18 +08:00
|
|
|
Fatal error: Uncaught Exception: error! in %sbug51394.php:%d
|
2012-09-06 15:26:40 +08:00
|
|
|
Stack trace:
|
2013-02-16 22:22:22 +08:00
|
|
|
#0 %sbug51394.php(%d): eh(8, 'Undefined varia%s', '%s', %d, Array)
|
2012-09-06 15:26:40 +08:00
|
|
|
#1 {main}
|
2013-02-16 22:22:22 +08:00
|
|
|
thrown in %sbug51394.php on line %d
|