[php-src] PR #23781: Fix OSS-Fuzz #536440507: Immutable class incorrect assertion
| From: | ndossche | Date: | Sat, 19 Sep 2026 22:39:35 +0000 |
| Subject: | [php-src] PR #23781: Fix OSS-Fuzz #536440507: Immutable class incorrect assertion | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-38608@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/23781
Author: ndossche
For immutable classes, the flag for updated constants lives on the mutable part (see
zend_update_class_constants).
That means the assertion is bogus and can be replaced with a more complex check via a helper
function.
For the case where we perform the flags check, but not as an assertion but as a proper check,
deferring to zend_update_class_constants() is enough because it already checks the flags correctly
itself.