Skip to content

Disable opcache.consistency_checks #10798

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

nielsdos
Copy link
Member

@nielsdos nielsdos commented Mar 6, 2023

Replaces GH-10624
Closes GH-8065

This feature does not work right now and leads to memory leaks and other problems. For analysis and discussion see GH-8065. In GH-10624 it was decided to disable the feature to prevent problems for end users. If end users which to get some consistency guarantees, they can rely on opcache.protect_memory.

For now I left the code checking for consistency checks intact in ZendAccelerator.c. We can remove it later if it is decided the feature needs to be removed.

This feature does not work right now and leads to memory leaks and other
problems. For analysis and discussion see phpGH-8065. In phpGH-10624 it was
decided to disable the feature to prevent problems for end users.
If end users which to get some consistency guarantees, they can rely on
opcache.protect_memory.
@nielsdos nielsdos force-pushed the disable-consistency-checks branch from 595f4f3 to 9314ef8 Compare March 6, 2023 20:42
Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

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

Thank you for this PR!

@nielsdos nielsdos self-assigned this Mar 6, 2023
@nielsdos nielsdos closed this in 85df512 Mar 7, 2023
iluuu1994 added a commit that referenced this pull request Aug 2, 2023
This feature has been broken at least since the tracing JIT and inheritance
cache have been introduced. The attempted fix (GH-10798) was too complex. We
have thus decided to remove this feature for now.

Closes GH-11832
jorgsowa pushed a commit to jorgsowa/php-src that referenced this pull request Aug 16, 2023
This feature has been broken at least since the tracing JIT and inheritance
cache have been introduced. The attempted fix (phpGH-10798) was too complex. We
have thus decided to remove this feature for now.

Closes phpGH-11832
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants