forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* PHP-7.0: Fixed #73969 - Fixed segmentation fault when debug_print_backtrace called
- Loading branch information
Showing
4 changed files
with
44 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?php | ||
debug_print_backtrace(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--TEST-- | ||
Bug #73969: segfault on debug_print_backtrace with require() call | ||
--FILE-- | ||
<?php | ||
trait c2 | ||
{ | ||
public static function f1() | ||
{ | ||
|
||
} | ||
} | ||
|
||
class c1 | ||
{ | ||
use c2 | ||
{ | ||
c2::f1 as f2; | ||
} | ||
|
||
public static function go() | ||
{ | ||
return require('bug73969.inc'); | ||
} | ||
} | ||
|
||
c1::go(); | ||
?> | ||
--EXPECTF-- | ||
#0 require() called at [%s:19] | ||
#1 c1::go() called at [%s:23] |