File tree Expand file tree Collapse file tree 4 files changed +44
-6
lines changed Expand file tree Collapse file tree 4 files changed +44
-6
lines changed Original file line number Diff line number Diff line change 8
8
. Fixed bug #73876 (Crash when exporting **= in expansion of assign op).
9
9
(Sara)
10
10
. Fixed bug #73962 (bug with symlink related to cyrillic directory). (Anatol)
11
+ . Fixed bug #73969 (segfault in debug_print_backtrace). (andrewnester)
11
12
12
13
- DTrace:
13
14
. Fixed bug #73965 (DTrace reported as enabled when disabled). (Remi)
Original file line number Diff line number Diff line change @@ -2447,12 +2447,17 @@ ZEND_FUNCTION(debug_print_backtrace)
2447
2447
2448
2448
if (call -> func ) {
2449
2449
func = call -> func ;
2450
- function_name = (func -> common .scope &&
2451
- func -> common .scope -> trait_aliases ) ?
2452
- ZSTR_VAL (zend_resolve_method_name (
2453
- (object ? object -> ce : func -> common .scope ), func )) :
2454
- (func -> common .function_name ?
2455
- ZSTR_VAL (func -> common .function_name ) : NULL );
2450
+ zend_string * zend_function_name ;
2451
+ if (func -> common .scope && func -> common .scope -> trait_aliases ) {
2452
+ zend_function_name = zend_resolve_method_name (object ? object -> ce : func -> common .scope , func );
2453
+ } else {
2454
+ zend_function_name = func -> common .function_name ;
2455
+ }
2456
+ if (zend_function_name != NULL ) {
2457
+ function_name = ZSTR_VAL (zend_function_name );
2458
+ } else {
2459
+ function_name = NULL ;
2460
+ }
2456
2461
} else {
2457
2462
func = NULL ;
2458
2463
function_name = NULL ;
Original file line number Diff line number Diff line change
1
+ <?php
2
+ debug_print_backtrace ();
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Bug #73969: segfault on debug_print_backtrace with require() call
3
+ --FILE--
4
+ <?php
5
+ trait c2
6
+ {
7
+ public static function f1 ()
8
+ {
9
+
10
+ }
11
+ }
12
+
13
+ class 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
+
26
+ c1::go ();
27
+ ?>
28
+ --EXPECTF--
29
+ #0 require() called at [%s:19]
30
+ #1 c1::go() called at [%s:23]
You can’t perform that action at this time.
0 commit comments