Fixed PHP 5.2 compatibility

This commit is contained in:
David Steinsland 2015-01-16 16:02:44 +01:00
parent e37db25ce0
commit e5d1846d4b

View file

@ -134,7 +134,7 @@ class ErrorHandler {
$e->getTraceAsString() $e->getTraceAsString()
); );
static::$_bailExceptionRendering = true; self::$_bailExceptionRendering = true;
trigger_error($message, E_USER_ERROR); trigger_error($message, E_USER_ERROR);
} }
} }
@ -266,8 +266,8 @@ class ErrorHandler {
$exception = new InternalErrorException(); $exception = new InternalErrorException();
} }
if (static::$_bailExceptionRendering) { if (self::$_bailExceptionRendering) {
static::$_bailExceptionRendering = false; self::$_bailExceptionRendering = false;
throw $exception; throw $exception;
} }