mirror of
https://github.com/php/php-src.git
synced 2026-04-28 10:43:30 +02:00
2f1f34952e
I'm removing the argument entirely here, but we might want to change this to passing null or and empty array instead, if the impact of dropping it entirely turns out to be too large. This was deprecated as part of https://wiki.php.net/rfc/deprecations_php_7_2 as a doc-only deprecation.
21 lines
435 B
PHP
21 lines
435 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: error! in %sbug51394.php:%d
|
|
Stack trace:
|
|
#0 %sbug51394.php(%d): eh(8, 'Undefined varia%s', '%s', %d)
|
|
#1 {main}
|
|
thrown in %sbug51394.php on line %d
|