-
Notifications
You must be signed in to change notification settings - Fork 345
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
Unexpected die when there is a PHP startup error. #1192
Comments
Ugh, I really hate it when F3 does “smart” things like this without a sensible way to disable the behaviour. Fortunately, if I am parsing the code correctly, there should be no code path that has the error handler set up and error reporting disabled so just plopping https://github.com/SSilence/selfoss/blob/defe8424991468c416e19243469cb7ce87b22d51/src/common.php#L18 |
Yep |
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
I opened a PR with a fix: #1195 |
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
As I know, PHP startup error will not affect the normal application. But when I use selfoss in a virtual host service(I am not able to modify the PHP.INI), an unexpected error is thrown:
Because there is a startup error checker in the Fatfree framework: f3-factory/fatfree-core#125, the application will be exit when a start error exists.
You can disable the checker
error_reporting(0)
to solve this problem.The text was updated successfully, but these errors were encountered: