xref: /PHP-8.2/tests/basic/bug73969.phpt (revision de6e401e)
1--TEST--
2Bug #73969: segfault on debug_print_backtrace with require() call
3--FILE--
4<?php
5trait c2
6{
7    public static function f1()
8    {
9
10    }
11}
12
13class c1
14{
15    use c2
16    {
17        c2::f1 as f2;
18    }
19
20    public static function go()
21    {
22        return require('bug73969.inc');
23    }
24}
25
26c1::go();
27?>
28--EXPECTF--
29#0 %s(19): require()
30#1 %s(23): c1::go()
31