xref: /PHP-7.1/Zend/tests/bug64239_3.phpt (revision 7dce0194)
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  A->Bmethod() called at [%sbug64239_3.php:%d]
31#0  A->t2method() called at [%sbug64239_3.php:%d]
32#0  C->Bmethod() called at [%sbug64239_3.php:%d]
33#0  A->t2method() called at [%sbug64239_3.php:%d]
34