-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* PHP-8.4: Fix stack overflow detection for variable compilation
- Loading branch information
Showing
2 changed files
with
75 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--TEST-- | ||
Stack limit 015 - Internal stack limit check in zend_compile_var() | ||
--CREDITS-- | ||
abdullahasif88 | ||
--SKIPIF-- | ||
<?php | ||
if (!function_exists('zend_test_zend_call_stack_get')) die("skip zend_test_zend_call_stack_get() is not available"); | ||
?> | ||
--EXTENSIONS-- | ||
zend_test | ||
--INI-- | ||
zend.max_allowed_stack_size=128K | ||
--FILE-- | ||
<?php | ||
|
||
$test | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
->p->p->p->p->p->p->p->p->p->p | ||
; | ||
|
||
?> | ||
--EXPECTF-- | ||
Fatal error: Maximum call stack size of %d bytes (zend.max_allowed_stack_size - zend.reserved_stack_size) reached during compilation. Try splitting expression in %s on line %d |
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