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