xref: /PHP-8.3/ext/opcache/tests/gh10405.phpt (revision 306a72ad)
1--TEST--
2GH-10405 (Missing zend_shared_alloc_unlock)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7opcache.preload={PWD}/preload_user.inc
8opcache.preload_user={ENV:TEST_NON_ROOT_USER}
9opcache.log_verbosity_level=2
10--EXTENSIONS--
11opcache
12posix
13--SKIPIF--
14<?php
15if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
16if (posix_geteuid() !== 0) die('skip Test needs root user');
17?>
18--FILE--
19<?php
20require __DIR__ . '/gh10405.inc';
21?>
22OK
23--EXPECTF--
24bool(false)
25included
26OK
27