Skip to content

Add support for replaying warnings in opcache #5600

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 5 commits into from

Conversation

nikic
Copy link
Member

@nikic nikic commented May 19, 2020

Collect warnings when the file is compiled and then replay them when it is included again. This fixes https://bugs.php.net/bug.php?id=76535.

With this, we should also be able to set up a job for testing file cache.

@nikic
Copy link
Member Author

nikic commented May 19, 2020

@dstogov What do you think about this? If necessary, I could also put this feature behind an ini setting.

(The new file cache CI job will need some more work, to fix some segfaults and skip some tests.)

@dstogov
Copy link
Member

dstogov commented May 19, 2020

I don't see a big value, but I also don't see anything bad.
And yes, please provide an INI directive to disable this with minimal overhead.

@nikic nikic force-pushed the opcache-replay-warnings branch 2 times, most recently from 4c7a025 to 059a140 Compare May 20, 2020 10:49
@nikic nikic force-pushed the opcache-replay-warnings branch from 059a140 to d56128b Compare May 20, 2020 12:49
@nikic
Copy link
Member Author

nikic commented May 20, 2020

Merged behind a default-disabled opcache.record_warnings ini setting in 0a74da3. File cache tests set up in 0374cf0 and 25aa125. Bug fixes for file cache crashes in 8819d24 and db0cdcb.

@nikic nikic closed this May 20, 2020
@carusogabriel carusogabriel added this to the PHP 8.0 milestone May 29, 2020
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