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:
parent
36cb32dd4d
commit
28692f9a78
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user