xref: /PHP-8.0/Zend/tests/bug64239_4.phpt (revision f8d79582)
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 static function Bmethod() {
11        debug_print_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1);
12    }
13}
14
15trait T2 {
16    public static function t2method() {
17        debug_print_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1);
18    }
19}
20
21A::Bmethod();
22A::t2method();
23
24C::Bmethod();
25C::t2method();
26?>
27--EXPECTF--
28#0  A::Bmethod() called at [%sbug64239_4.php:%d]
29#0  A::t2method() called at [%sbug64239_4.php:%d]
30#0  C::Bmethod() called at [%sbug64239_4.php:%d]
31#0  A::t2method() called at [%sbug64239_4.php:%d]
32