Files
Gina Peter Banyard 34c686a5b4 stream: remove path parameter in stream error functions (#22792)
Instead rely on the mechanism gated by the error_include_args INI to display them.

This actually aligns the behaviour of what was accepted in https://wiki.php.net/rfc/display_error_function_args.
2026-07-19 16:15:01 +01:00

14 lines
399 B
PHP

--TEST--
Bug #28213 (crash in debug_print_backtrace in static methods)
--FILE--
<?php
class FooBar { static function error() { debug_print_backtrace(); } }
set_error_handler(array('FooBar', 'error'));
include('foobar.php');
?>
--EXPECTF--
#0 %s(%d): FooBar::error(2, 'include(): Fail...', '%s', 4)
#1 %s(%d): include()
#0 %s(%d): FooBar::error(2, 'include(): Fail...', '%s', 4)
#1 %s(%d): include()