Skip to content

Improve opcache.max_accelerated_files validation#22412

Open
jack-worman wants to merge 1 commit into
php:masterfrom
jack-worman:Better-opcache.max_accelerated_files-validation
Open

Improve opcache.max_accelerated_files validation#22412
jack-worman wants to merge 1 commit into
php:masterfrom
jack-worman:Better-opcache.max_accelerated_files-validation

Conversation

@jack-worman

@jack-worman jack-worman commented Jun 23, 2026

Copy link
Copy Markdown

I think it improves clarity to be explicit about what values are allowed and to not implicitly coerce them.

At a minimum, MAX_ACCEL_FILES should be increased to be the real max value as this is a footgun.

@jack-worman jack-worman requested a review from dstogov as a code owner June 23, 2026 13:22
@jack-worman jack-worman marked this pull request as draft June 23, 2026 13:23
@jack-worman jack-worman changed the title Better-opcache.max_accelerated_files-validation Improve opcache.max_accelerated_files validation Jun 23, 2026
@TimWolla

Copy link
Copy Markdown
Member

This change is acceptable for master only. Can you first retarget the PR and afterwards rebase your branch onto master?

@jack-worman jack-worman force-pushed the Better-opcache.max_accelerated_files-validation branch from b342d67 to a276d2b Compare June 23, 2026 14:23
@jack-worman jack-worman changed the base branch from PHP-8.3 to master June 23, 2026 14:23
@jack-worman jack-worman marked this pull request as ready for review June 23, 2026 14:25
@jack-worman jack-worman requested a review from TimWolla as a code owner June 23, 2026 14:25
@jack-worman

Copy link
Copy Markdown
Author

This change is acceptable for master only. Can you first retarget the PR and afterwards rebase your branch onto master?

Done.

@TimWolla TimWolla 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.

This seems reasonable.

&& size != 130987
&& size != 262237
&& size != 524521
&& size != 1048793

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What is the reason to not allow number larger than 1048793?

@jack-worman jack-worman Jun 23, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I'm not sure; I only know that 1048793 has been the max since 2013

Sign up for free to 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