xref: /PHP-7.3/tests/basic/bug73969.phpt (revision 6f912f7c)
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  require() called at [%s:19]
30#1  c1::go() called at [%s:23]
31