1--TEST--
2shmop_open with IPC_PRIVATE creates private SHM
3--SKIPIF--
4<?php
5if (!extension_loaded('shmop')) die('skip shmop extension not available');
6?>
7--FILE--
8<?php
9$write = 'test';
10
11$shm1 = shmop_open(0, 'c', 0777, 1024);
12shmop_write($shm1, $write, 0);
13
14$shm2 = shmop_open(0, 'c', 0777, 1024);
15$read = shmop_read($shm2, 0, 4);
16
17var_dump(is_string($read) && $read !== $write);
18
19shmop_close($shm1);
20shmop_close($shm2);
21?>
22--EXPECT--
23bool(true)
24