Bugfixed SharedMemoryBlock, added tests
This commit is contained in:
@ -29,7 +29,7 @@ class SharedMemoryBlock
|
||||
*/
|
||||
public function __construct(KeyInterface $key, string $flags, int $memsize, int $perm = 0666)
|
||||
{
|
||||
if (!($shm_resource = shmop_open($key->getKey(), $memsize, $perm))) {
|
||||
if (!($shm_resource = shmop_open($key->getKey(), $flags, $perm, $memsize))) {
|
||||
throw new \RuntimeException("Unable to attach shm resource {$key}");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user