From 23e8b2d75744d7d4c4d7308a8ae92da39f4eb92b Mon Sep 17 00:00:00 2001 From: Git'Fellow <12234510+solracsf@users.noreply.github.com> Date: Thu, 9 Jan 2025 19:21:35 +0100 Subject: [PATCH] fix(setupchecks): Binary data can have problems with serialize Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> --- apps/settings/lib/SetupChecks/MemcacheConfigured.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/settings/lib/SetupChecks/MemcacheConfigured.php b/apps/settings/lib/SetupChecks/MemcacheConfigured.php index da9fbdf684c14..e976e5a544ca0 100644 --- a/apps/settings/lib/SetupChecks/MemcacheConfigured.php +++ b/apps/settings/lib/SetupChecks/MemcacheConfigured.php @@ -76,7 +76,7 @@ public function run(): SetupResult { } if ($this->cacheFactory->isLocalCacheAvailable()) { - $random = random_bytes(64); + $random = bin2hex(random_bytes(64)); $local = $this->cacheFactory->createLocal('setupcheck.local'); try { $local->set('test', $random); @@ -93,7 +93,7 @@ public function run(): SetupResult { } if ($this->cacheFactory->isAvailable()) { - $random = random_bytes(64); + $random = bin2hex(random_bytes(64)); $distributed = $this->cacheFactory->createDistributed('setupcheck'); try { $distributed->set('test', $random);