1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 10:19:00 +01:00
This commit is contained in:
Daniil Gentili 2017-05-18 14:18:55 +01:00
parent fa0f5f7331
commit ade634d831
3 changed files with 1 additions and 17 deletions

View File

@ -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;
}

View File

@ -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;
}
}

View File

@ -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) {