1--TEST--
2preload_user sets the process uid
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
20var_dump(function_exists("f1"));
21var_dump(function_exists("f2"));
22?>
23OK
24--EXPECTF--
25bool(false)
26bool(true)
27bool(false)
28OK
29