public __construct ( mixed $value, integer $size = 16384, integer $permissions = 384 ) | ||
$value | mixed | The value to store in the container. |
$size | integer | The number of bytes to allocate for the object. If not specified defaults to 16384 bytes. |
$permissions | integer | The access permissions to set for the object. If not specified defaults to 0600. |
public function __construct($value, int $size = 16384, int $permissions = 0600)
{
if (!extension_loaded("shmop")) {
throw new UnsupportedError(__CLASS__ . " requires the shmop extension.");
}
$this->init($value, $size, $permissions);
}