Skip to content
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

common: Do not crash on PHP startup error #1195

Merged
merged 1 commit into from
May 17, 2020
Merged

common: Do not crash on PHP startup error #1195

merged 1 commit into from
May 17, 2020

Conversation

jtojnar
Copy link
Member

@jtojnar jtojnar commented May 15, 2020

F3 crashes when there were PHP startups error even though they might not affect the program (e.g. unable to load an extension). It also sets its own error_reporting value and uses the previous one as a signal to disable the initialization failure check.

Let's use that to avoid the crash and log the error ourselves.

Fixes: #1192

F3 crashes when there were PHP startups error even though
they might not affect the program (e.g. unable to load an extension).
It also sets its own error_reporting value and uses the previous one
as a signal to disable the initialization failure check.

Let's use that to avoid the crash and log the error ourselves.

Fixes: #1192
@jtojnar jtojnar merged commit 6993cfb into master May 17, 2020
@jtojnar jtojnar deleted the init-failure branch May 17, 2020 15:06
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.

Unexpected die when there is a PHP startup error.
1 participant