[php-src] PR #25916: Fix GH-25910: Build opcode handlers table at startup in ZTS
| From: | lazerg | Date: | Mon, 30 Nov 2026 01:34:32 +0000 |
| Subject: | [php-src] PR #25916: Fix GH-25910: Build opcode handlers table at startup in ZTS | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-41225@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25916
Author: lazerg
In ZTS builds the opcode handlers table was built lazily and without a lock, so a second thread
could see it published but not yet filled and crash in zend_serialize_opcode_handler() when storing
to the opcache file cache. Build it in zend_vm_init() instead, which runs on the single startup
thread.
Fixes GH-25910