1--TEST-- 2preload_user has no effect when preload_user is the current user 3--INI-- 4opcache.enable=1 5opcache.enable_cli=1 6opcache.optimization_level=-1 7opcache.preload={PWD}/preload_user.inc 8opcache.preload_user=root 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'); 17if (posix_getpwnam('root') === false) die('skip Root user does not exist'); 18?> 19--FILE-- 20<?php 21var_dump(function_exists("f1")); 22var_dump(function_exists("f2")); 23?> 24OK 25--EXPECTF-- 26bool(true) 27bool(true) 28bool(false) 29OK 30