1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-26 21:34:41 +01:00

Test igbinary serialization

This commit is contained in:
Daniil Gentili 2023-05-27 12:11:24 +02:00
parent 36cb32dd4d
commit 28692f9a78
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -33,7 +33,10 @@ $map = [
]; ];
$settings = $map[$argv[1]]; $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); $MadelineProto->updateSettings($settings);