mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
de6e401e05
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.
31 lines
359 B
PHP
31 lines
359 B
PHP
--TEST--
|
|
Bug #73969: segfault on debug_print_backtrace with require() call
|
|
--FILE--
|
|
<?php
|
|
trait c2
|
|
{
|
|
public static function f1()
|
|
{
|
|
|
|
}
|
|
}
|
|
|
|
class c1
|
|
{
|
|
use c2
|
|
{
|
|
c2::f1 as f2;
|
|
}
|
|
|
|
public static function go()
|
|
{
|
|
return require('bug73969.inc');
|
|
}
|
|
}
|
|
|
|
c1::go();
|
|
?>
|
|
--EXPECTF--
|
|
#0 %s(19): require()
|
|
#1 %s(23): c1::go()
|