public handleHhvmError ( integer $code, string $message, string $file, integer $line, mixed $context, mixed $backtrace ) : boolean | ||
$code | integer | the level of the error raised. |
$message | string | the error message. |
$file | string | the filename that the error was raised in. |
$line | integer | the line number the error was raised at. |
$context | mixed | |
$backtrace | mixed | trace of error |
리턴 | boolean | whether the normal error handler continues. |
public function handleHhvmError($code, $message, $file, $line, $context, $backtrace)
{
if ($this->handleError($code, $message, $file, $line)) {
return true;
}
if (E_ERROR & $code) {
$exception = new ErrorException($message, $code, $code, $file, $line);
$ref = new \ReflectionProperty('\\Exception', 'trace');
$ref->setAccessible(true);
$ref->setValue($exception, $backtrace);
$this->_hhvmException = $exception;
}
return false;
}