xref: /PHP-8.1/Zend/tests/bug64239_3.phpt (revision de6e401e)
1--TEST--
2Bug #64239 (debug_print_backtrace() changed behavior)
3--FILE--
4<?php
5class A {
6    use T2 { t2method as Bmethod; }
7}
8
9class C extends A {
10    public function Bmethod() {
11        debug_print_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1);
12    }
13}
14
15trait T2 {
16    public function t2method() {
17        debug_print_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1);
18    }
19}
20
21$a = new A();
22$a->Bmethod();
23$a->t2method();
24
25$c = new C();
26$c->Bmethod();
27$c->t2method();
28?>
29--EXPECTF--
30#0 %s(%d): A->Bmethod()
31#0 %s(%d): A->t2method()
32#0 %s(%d): C->Bmethod()
33#0 %s(%d): A->t2method()
34