[php-src] PR #23625: Fix GH-22214: Honor opcache.dups_fix for duplicate functions
| From: | prateekbhujel | Date: | Wed, 09 Sep 2026 08:42:21 +0000 |
| Subject: | [php-src] PR #23625: Fix GH-22214: Honor opcache.dups_fix for duplicate functions | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-38399@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/23625
Author: prateekbhujel
Closes GH-22214.
opcache.dups_fix was checked when copying the class table in
_zend_accel_class_hash_copy, but _zend_accel_function_hash_copy
unconditionally raised a fatal error on duplicate functions without checking
ignore_dups.
This adds the missing check in _zend_accel_function_hash_copy to ignore duplicate
functions when opcache.dups_fix is enabled, keeping the first definition.