Browse Source

typo.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
3616278ada
  1. 2
      framework/base/Application.php
  2. 2
      framework/base/ErrorException.php

2
framework/base/Application.php

@ -165,7 +165,7 @@ class Application extends Module
if (YII_ENABLE_ERROR_HANDLER) {
$error = error_get_last();
if (ErrorException::isFatalErorr($error)) {
if (ErrorException::isFatalError($error)) {
unset($this->_memoryReserve);
$exception = new ErrorException($error['message'], $error['type'], $error['type'], $error['file'], $error['line']);
$this->logException($exception);

2
framework/base/ErrorException.php

@ -79,7 +79,7 @@ class ErrorException extends Exception
* @param array $error error got from error_get_last()
* @return bool if error is one of fatal type
*/
public static function isFatalErorr($error)
public static function isFatalError($error)
{
return isset($error['type']) && in_array($error['type'], array(E_ERROR, E_PARSE, E_CORE_ERROR, E_CORE_WARNING, E_COMPILE_ERROR, E_COMPILE_WARNING));
}

Loading…
Cancel
Save