Throw exception on E_NOTICE

Use of uninitialized values must be detected asap.
This commit is contained in:
Eric Lippmann 2014-11-15 01:20:27 +01:00
parent 2cd8e14998
commit 6ba4e55277
1 changed files with 1 additions and 0 deletions

View File

@ -459,6 +459,7 @@ abstract class ApplicationBootstrap
return false; // Continue with the normal error handler return false; // Continue with the normal error handler
} }
switch($errno) { switch($errno) {
case E_NOTICE:
case E_WARNING: case E_WARNING:
case E_STRICT: case E_STRICT:
throw new ErrorException($errstr, 0, $errno, $errfile, $errline); throw new ErrorException($errstr, 0, $errno, $errfile, $errline);