xref: /PHP-8.2/Zend/tests/bug64239_4.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 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 %s(%d): A::Bmethod()
29#0 %s(%d): A::t2method()
30#0 %s(%d): C::Bmethod()
31#0 %s(%d): A::t2method()
32