public function __construct($size = 33554432, $file = __FILE__)
{
$this->size = $size;
if (function_exists("shm_attach") === false) {
$message = "\nYour PHP configuration needs adjustment. " . "See: http://us2.php.net/manual/en/shmop.setup.php. " . "To enable the System V shared memory support compile " . " PHP with the option --enable-sysvshm.";
throw new \RuntimeException($message);
}
$this->attach($file);
//create resources (shared memory)
}