Skip to content

ext/opcache: opcache.interned_strings_buffer per FPM pool crashed on … - #23309

Closed
devnexen wants to merge 4 commits into
php:PHP-8.4from
devnexen:gh23288
Closed

ext/opcache: opcache.interned_strings_buffer per FPM pool crashed on …#23309
devnexen wants to merge 4 commits into
php:PHP-8.4from
devnexen:gh23288

Conversation

@devnexen

Copy link
Copy Markdown
Member

…restart.

Fix#23288

The directive was still accepted once the shared interned string table had been sized from the master php.ini, so a diverging pool value made the next restart run accel_interned_strings_restore_state() against a table that was never allocated. Reject post-startup changes like opcache.memory_consumption and gate the restore on the shared table state instead of the per-process directive.

…restart.
Fixphp#23288
The directive was still accepted once the shared interned string table
had been sized from the master php.ini, so a diverging pool value made
the next restart run accel_interned_strings_restore_state() against a
table that was never allocated. Reject post-startup changes like
opcache.memory_consumption and gate the restore on the shared table
state instead of the per-process directive.
@devnexen
devnexen marked this pull request as ready for review August 16, 2026 12:27
Comment threadext/opcache/zend_accelerator_module.c

@arnaud-lbarnaud-lb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@devnexen
devnexen deleted the gh23288 branch August 23, 2026 14:26
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@devnexen@TimWolla@arnaud-lb