We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c940512 commit 8ce0682Copy full SHA for 8ce0682
1 file changed
src/Ehann/Cache/RedisStore.php
@@ -60,7 +60,7 @@ protected function serialize($value)
60
*/
61
protected function unserialize($value)
62
{
63
- if (is_string($value)) {
+ if (!is_numeric($value) && is_string($value)) {
64
$isValueCompressed = bin2hex(mb_strcut($value, 0, 1)) === self::COMPRESSION_ENABLED_FILE_HEADER;
65
return unserialize($isValueCompressed ? gzuncompress($value) : $value);
66
}
0 commit comments