mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 10:19:00 +01:00
bugfixes
This commit is contained in:
parent
fa0f5f7331
commit
ade634d831
@ -52,14 +52,6 @@ if (!extension_loaded('pthreads')) {
|
||||
}
|
||||
}
|
||||
|
||||
if (is_array($value)) {
|
||||
$safety =
|
||||
new Volatile();
|
||||
$safety->merge(
|
||||
$this->convertToVolatile($value));
|
||||
$value = $safety;
|
||||
}
|
||||
|
||||
return $this->{$offset} = $value;
|
||||
}
|
||||
|
||||
|
@ -9,14 +9,6 @@ if (!extension_loaded('pthreads')) {
|
||||
$offset = count((array) $this);
|
||||
}
|
||||
|
||||
if (is_array($value)) {
|
||||
$safety =
|
||||
new self();
|
||||
$safety->merge(
|
||||
$this->convertToVolatile($value));
|
||||
$value = $safety;
|
||||
}
|
||||
|
||||
return $this->{$offset} = $value;
|
||||
}
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ class Serialization
|
||||
class_exists('\Volatile');
|
||||
\danog\MadelineProto\Logger::class_exists();
|
||||
try {
|
||||
$unserialized = \danog\MadelineProto\Logger::$has_thread ? \danog\Serialization::unserialize($unserialized) : unserialize($unserialized);
|
||||
$unserialized = \danog\Serialization::unserialize($unserialized);
|
||||
} catch (Bug74586Exception $e) {
|
||||
$unserialized = \danog\Serialization::unserialize($unserialized);
|
||||
} catch (Exception $e) {
|
||||
|
Loading…
Reference in New Issue
Block a user