mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Merge branch 'PHP-8.4'
* PHP-8.4: Fix tests: Prevent stack overflow during dtor
This commit is contained in:
commit
c5a5707450
2 changed files with 9 additions and 0 deletions
|
@ -31,6 +31,10 @@ var_dump(json_encode($firstNode, depth: 500000));
|
|||
var_dump(json_last_error());
|
||||
var_dump(json_last_error_msg());
|
||||
|
||||
while ($next = $firstNode->next) {
|
||||
$firstNode->next = $next->next;
|
||||
}
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
bool(false)
|
||||
|
|
|
@ -30,6 +30,11 @@ try {
|
|||
} catch (Error $e) {
|
||||
echo $e->getMessage(), "\n";
|
||||
}
|
||||
|
||||
while ($next = $firstNode->next) {
|
||||
$firstNode->next = $next->next;
|
||||
}
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Maximum call stack size of %d bytes (zend.max_allowed_stack_size - zend.reserved_stack_size) reached. Infinite recursion?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue