xref: /PHP-7.4/ext/shmop/tests/bug81407.phpt (revision f3d24af7)
1--TEST--
2Bug #81407 (shmop_open won't attach and causes php to crash)
3--SKIPIF--
4<?php
5if (PHP_OS_FAMILY !== "Windows") die("skip for Windows only");
6if (!extension_loaded("shmop")) die("skip shmop extension not available");
7?>
8--FILE--
9<?php
10$a = shmop_open(367504384, 'n', 0664, 262144);
11$b = shmop_open(367504385, 'n', 0664, 65536);
12if ($b == false) {
13	$b = shmop_open(367504385, 'w', 0664, 65536);
14}
15var_dump($a !== false, $b !== false);
16?>
17--EXPECT--
18bool(true)
19bool(true)
20