MadelineProto/src/Volatile.php
Daniil Gentili ade634d831 bugfixes
2017-05-18 14:18:55 +01:00

16 lines
306 B
PHP

<?php
if (!extension_loaded('pthreads')) {
class Volatile extends Threaded
{
public function __set($offset, $value)
{
if ($offset === null) {
$offset = count((array) $this);
}
return $this->{$offset} = $value;
}
}
}