mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-22 23:07:20 +00:00
Fixed PHP 5.2 compatibility
This commit is contained in:
parent
e37db25ce0
commit
e5d1846d4b
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue