[php-src] PR #23124: Fix GH-23113: stack overflow in array_replace_recursive() with deep arrays

From: Date: Sat, 08 Aug 2026 04:31:45 +0000
Subject: [php-src] PR #23124: Fix GH-23113: stack overflow in array_replace_recursive() with deep arrays
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-37632@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/23124 Author: lazerg php_array_replace_recursive() recurses once per nesting level with no stack check, so array_replace_recursive() on a deeply nested array exhausts the native stack and the process dies with a segfault. This is the follow-up I offered in #23091, applying the same stack limit check ext/standard already uses in var.c and http.c, so the call throws an Error instead of crashing. Fixes #23113.

« previous php.git-pulls (#37632) next »