From afca352b30466ecff38dc3106321851a030af623 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Thu, 14 Nov 2013 15:26:59 +0200 Subject: Remove a function_exists() check for error_get_last() It was only relevant until we dropped support for PHP < 5.2 --- system/core/Common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) { -- cgit v1.2.3-24-g4f1b