diff options
author | 2023-07-15 22:44:26 +0200 | |
---|---|---|
committer | 2023-07-15 22:44:26 +0200 | |
commit | e8420b9f39fa5db6272d341d31b090a1be22e211 (patch) | |
tree | c2e61b677a81d8526683fa0b08b0aa2cca324481 | |
parent | ef8181478d62b7a558dcf9821076882b13443b0f (diff) | |
download | rss-bridge-e8420b9f39fa5db6272d341d31b090a1be22e211.tar.gz rss-bridge-e8420b9f39fa5db6272d341d31b090a1be22e211.tar.zst rss-bridge-e8420b9f39fa5db6272d341d31b090a1be22e211.zip |
fix(sqlitecache): log failed unserialization (#3539)
-rw-r--r-- | caches/SQLiteCache.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/caches/SQLiteCache.php b/caches/SQLiteCache.php index cb9f33b1..bc110928 100644 --- a/caches/SQLiteCache.php +++ b/caches/SQLiteCache.php @@ -41,10 +41,12 @@ class SQLiteCache implements CacheInterface $result = $stmt->execute(); if ($result) { $row = $result->fetchArray(\SQLITE3_ASSOC); - $data = unserialize($row['value']); + $blob = $row['value']; + $data = unserialize($blob); if ($data !== false) { return $data; } + Logger::error(sprintf("Failed to unserialize: '%s'", mb_substr($blob, 0, 100))); } return null; } |