Skip to content

Don't mark ini as modified in begin silence #6904

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

nikic
Copy link
Member

@nikic nikic commented Apr 23, 2021

We don't actually modify the value of the setting since PHP 7.0, so this is unnecessary.

@nikic
Copy link
Member Author

nikic commented Apr 23, 2021

@dstogov Do you know of any reason why this code exists?

@dstogov
Copy link
Member

dstogov commented Apr 27, 2021

@dstogov Do you know of any reason why this code exists?

It was intended to restore original EG(error_reporting) setting at the end of request in case of abnormal termination between BEGIN_SILENCE and END_SILENCE. It seems like we don't have another mechanism.

nikic added a commit that referenced this pull request May 11, 2021
This guard against the issue that GH-6904 would introduce when
run under --repeat 2 mode.
@nikic
Copy link
Member Author

nikic commented May 11, 2021

Thanks, we do need this code then. I added a test in 4fe07d4 to make sure the error_reporting restoring works correctly.

@nikic nikic closed this May 11, 2021
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.

2 participants