[php-src] PR #24992: json - fix OOM error message on hook branch
| From: | adapik | Date: | Wed, 28 Oct 2026 04:10:46 +0000 |
| Subject: | [php-src] PR #24992: json - fix OOM error message on hook branch | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40007@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/24992
Author: adapik
Every exit path unprotects recursion_rc, except the ZEND_HAS_OOM() branch taken when escaping an
object/array key fails. It unprotects myht instead, so for hooked classes the object keeps
GC_PROTECTED set. That branch also returns without freeing tmp, the value read through the get hook,
which the neighbouring error paths release.