php-src/tests/basic/bug73969.phpt
Nikita Popov de6e401e05
Use common formatting for backtraces (#6977)
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.
2021-05-18 11:43:37 +02:00

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()