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