mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
This makes debug_print_backtrace() use the same formatting as exception
backtraces. The only difference is that the final #{main} is omitted,
because it wouldn't make sense for limited backtraces, and wasn't there
previously either.
14 lines
399 B
PHP
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(foobar....', '%s', 4)
|
|
#1 %s(%d): include()
|
|
#0 %s(%d): FooBar::error(2, 'include(): Fail...', '%s', 4)
|
|
#1 %s(%d): include()
|