From 28692f9a7897cb705d8912810fa3534b7a4f9718 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 27 May 2023 12:11:24 +0200 Subject: [PATCH] Test igbinary serialization --- tests/db.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/db.php b/tests/db.php index 1e5b36156..c79fab168 100644 --- a/tests/db.php +++ b/tests/db.php @@ -33,7 +33,10 @@ $map = [ ]; $settings = $map[$argv[1]]; -$settings->setSerializer($argv[2] === 'igbinary' ? SerializerType::IGBINARY : SerializerType::SERIALIZE); + +if (!$settings instanceof Memory) { + $settings->setSerializer($argv[2] === 'igbinary' ? SerializerType::IGBINARY : SerializerType::SERIALIZE); +} $MadelineProto->updateSettings($settings);