Improve warning message

This commit is contained in:
Arnaud Le Blanc 2022-09-30 14:55:28 +02:00
parent 722ed598d5
commit 2864282725
2 changed files with 2 additions and 2 deletions

View File

@ -4677,7 +4677,7 @@ static int accel_finish_startup_preload_subprocess(pid_t *pid)
if (euid != 0) {
if (ZCG(accel_directives).preload_user
&& *ZCG(accel_directives).preload_user) {
zend_accel_error(ACCEL_LOG_WARNING, "\"opcache.preload_user\" is ignored");
zend_accel_error(ACCEL_LOG_WARNING, "\"opcache.preload_user\" is ignored because the current user is not \"root\"");
}
*pid = -1;

View File

@ -22,7 +22,7 @@ var_dump(function_exists("f2"));
?>
OK
--EXPECTF--
%sWarning "opcache.preload_user" is ignored
%sWarning "opcache.preload_user" is ignored because the current user is not "root"
bool(true)
bool(false)
OK