Download src/php/php-src/ext/shmop/tests/shmop_open_private.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 330 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/shmop/tests/shmop_open_private.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/shmop/tests/shmop_open_private.phpt
-
curl -L -o shmop_open_private.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/shmop/tests/shmop_open_private.phpt
330 Bytes
| --TEST-- | |
| shmop_open with IPC_PRIVATE creates private SHM | |
| --EXTENSIONS-- | |
| shmop | |
| --FILE-- | |
| $write = 'test'; | |
| $shm1 = shmop_open(0, 'c', 0777, 1024); | |
| shmop_write($shm1, $write, 0); | |
| $shm2 = shmop_open(0, 'c', 0777, 1024); | |
| $read = shmop_read($shm2, 0, 4); | |
| var_dump(is_string($read) && $read !== $write); | |
| --EXPECT-- | |
| bool(true) | |