[php-src] PR #23785: Fix OSS-Fuzz #545352966: default value AST of an SHM-persisted partial
| From: | ndossche | Date: | Sun, 20 Sep 2026 09:42:36 +0000 |
| Subject: | [php-src] PR #23785: Fix OSS-Fuzz #545352966: default value AST of an SHM-persisted partial | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-38617@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/23785
Author: ndossche
Ownership mismatch.
zp_compile() generates a closure AST with parameter-default node here for parse_ini_string(), which
is a zend_ast_ref that is shared. The persistence code assumes unique ownership.
Change the code to be analogous to zend_persist_zval().