From 7909795d30e1b17758ad610ad5c44f9b5a75d8fc Mon Sep 17 00:00:00 2001 From: Sven Reichel Date: Mon, 2 Jan 2023 07:07:15 +0100 Subject: [PATCH] Update --- app/code/core/Mage/Core/functions.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/code/core/Mage/Core/functions.php b/app/code/core/Mage/Core/functions.php index 06169e5f5f9..f670f958bf3 100644 --- a/app/code/core/Mage/Core/functions.php +++ b/app/code/core/Mage/Core/functions.php @@ -123,11 +123,12 @@ function mageCoreErrorHandler($errno, $errstr, $errfile, $errline) return false; } + if (isset($_ENV['DEV_PHP_STRICT']) && $_ENV['DEV_PHP_STRICT'] == '1') { + return false; + } + // Suppress deprecation warnings on PHP 7.x - if ((!isset($_ENV['DEV_PHP_STRICT']) || $_ENV['DEV_PHP_STRICT'] != '1') - && $errno == E_DEPRECATED - && version_compare(PHP_VERSION, '7.0.0', '>=') - ) { + if ($errno == E_DEPRECATED && version_compare(PHP_VERSION, '7.0.0', '>=')) { return true; }