Fatal errors should always return false

This allows PHP to set the exit code on fatals.
This commit is contained in:
Simon Welsh 2014-07-16 21:03:55 +10:00
parent eed2293f31
commit cc9603d6a2

View File

@ -296,10 +296,11 @@ class Debug {
); );
if(Director::isDev() || Director::is_cli()) { if(Director::isDev() || Director::is_cli()) {
return self::showError($errno, $errstr, $errfile, $errline, $errcontext, "Error"); self::showError($errno, $errstr, $errfile, $errline, $errcontext, "Error");
} else { } else {
return self::friendlyError(); self::friendlyError();
} }
return false;
} }
/** /**