diff options
author | Andrey Andreev <narf@devilix.net> | 2013-11-14 14:26:59 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2013-11-14 14:26:59 +0100 |
commit | afca352b30466ecff38dc3106321851a030af623 (patch) | |
tree | 153952dbe18b642d55be92e65c1f6359a79ddf72 /system/core | |
parent | fb2ac41b6c914fd55b539337e381860bfcc2cf7b (diff) |
Remove a function_exists() check for error_get_last()
It was only relevant until we dropped support for PHP < 5.2
Diffstat (limited to 'system/core')
-rw-r--r-- | system/core/Common.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Common.php b/system/core/Common.php index c008bd571..00e303098 100644 --- a/system/core/Common.php +++ b/system/core/Common.php @@ -634,7 +634,7 @@ if ( ! function_exists('_shutdown_handler')) */ function _shutdown_handler() { - $last_error = function_exists('error_get_last') ? error_get_last() : NULL; + $last_error = error_get_last(); if (isset($last_error) && ($last_error['type'] & (E_ERROR | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING))) { |