Download src/php/php-src/ext/shmop/tests/gh14537.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 563 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/shmop/tests/gh14537.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/shmop/tests/gh14537.phpt
-
curl -L -o gh14537.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/shmop/tests/gh14537.phpt
563 Bytes
| --TEST-- | |
| GH-14537: shmop Windows 11 crashes the process | |
| --EXTENSIONS-- | |
| shmop | |
| --SKIPIF-- | |
| if (PHP_OS_FAMILY !== 'Windows') die('skip only for Windows'); | |
| --FILE-- | |
| $str = 'Hello World'; | |
| $shm_key = ftok(__FILE__, 'p'); | |
| $shm_id1 = shmop_open($shm_key, 'c', 0644, strlen($str)); | |
| shmop_delete($shm_id1); | |
| var_dump($shm_id1); | |
| $shm_id2 = shmop_open($shm_key, 'c', 0644, strlen($str) + 10); | |
| var_dump($shm_id2); | |
| --EXPECTF-- | |
| object(Shmop)#1 (0) { | |
| } | |
| Warning: shmop_open(): Unable to attach or create shared memory segment "%s" in %s on line %d | |
| bool(false) | |