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;
|
return $this->{$offset} = $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,14 +9,6 @@ if (!extension_loaded('pthreads')) {
|
||||||
$offset = count((array) $this);
|
$offset = count((array) $this);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_array($value)) {
|
|
||||||
$safety =
|
|
||||||
new self();
|
|
||||||
$safety->merge(
|
|
||||||
$this->convertToVolatile($value));
|
|
||||||
$value = $safety;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this->{$offset} = $value;
|
return $this->{$offset} = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,7 +63,7 @@ class Serialization
|
||||||
class_exists('\Volatile');
|
class_exists('\Volatile');
|
||||||
\danog\MadelineProto\Logger::class_exists();
|
\danog\MadelineProto\Logger::class_exists();
|
||||||
try {
|
try {
|
||||||
$unserialized = \danog\MadelineProto\Logger::$has_thread ? \danog\Serialization::unserialize($unserialized) : unserialize($unserialized);
|
$unserialized = \danog\Serialization::unserialize($unserialized);
|
||||||
} catch (Bug74586Exception $e) {
|
} catch (Bug74586Exception $e) {
|
||||||
$unserialized = \danog\Serialization::unserialize($unserialized);
|
$unserialized = \danog\Serialization::unserialize($unserialized);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user