'; $out .= '
'; $out .= '' . $errseverity . ' Line ' . $errline . ': ' . $errfile; $out .= '
'; $out .= '
'; $out .= '['.$errno.'] '. $errstr; $out .= '
'; $out .= ''; echo $out; } /** * */ public function shutDown () { if ($error = error_get_last()) { if (! headers_sent()) header('HTTP/1.1 500 Internal Server Error'); switch($error['type']) { case E_ERROR: case E_PARSE: case E_STRICT: case E_CORE_ERROR: case E_CORE_WARNING: case E_COMPILE_ERROR: case E_COMPILE_WARNING: case E_USER_ERROR: case E_RECOVERABLE_ERROR: $this->scriptError($error['type'], $error['message'], $error['file'], $error['line']); break; } } } }