fossar / selfoss

multipurpose rss reader, live stream, mashup, aggregation web application
https://selfoss.aditu.de
GNU General Public License v3.0
2.38k stars 345 forks source link

common: Do not crash on PHP startup error #1195

Closed jtojnar closed 4 years ago

jtojnar commented 4 years ago

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: https://github.com/SSilence/selfoss/issues/1192