diff --git a/CHANGELOG b/CHANGELOG index 5ed1bf794d..b3a675541c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -5,6 +5,7 @@ Version 1.1.28 under development -------------------------------- - Bug #4491: Fixed limit and Offset not working correctly with MSSQL version 11 (2012) and newer (shnoulle, wtommyw) +- Bug #4497: PHP 8.1 compatibility: Fix unserialize null in CRedisCache (kenguest, wtommyw) - Bug #4500: PHP 8.1 compatibility: Fix deprecation warnings in CMysql classes (csears123) Version 1.1.27 November 21, 2022 diff --git a/framework/caching/CRedisCache.php b/framework/caching/CRedisCache.php index e9770564df..15d4488ac6 100644 --- a/framework/caching/CRedisCache.php +++ b/framework/caching/CRedisCache.php @@ -204,7 +204,10 @@ private function byteLength($str) */ protected function getValue($key) { - return $this->executeCommand('GET',array($key)); + $value=$this->executeCommand('GET',array($key)); + if ($value===null) + return false; + return $value; } /**