Skip to content

Commit 2864282

Browse files
committed
Improve warning message
1 parent 722ed59 commit 2864282

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4677,7 +4677,7 @@ static int accel_finish_startup_preload_subprocess(pid_t *pid)
46774677
if (euid != 0) {
46784678
if (ZCG(accel_directives).preload_user
46794679
&& *ZCG(accel_directives).preload_user) {
4680-
zend_accel_error(ACCEL_LOG_WARNING, "\"opcache.preload_user\" is ignored");
4680+
zend_accel_error(ACCEL_LOG_WARNING, "\"opcache.preload_user\" is ignored because the current user is not \"root\"");
46814681
}
46824682

46834683
*pid = -1;

ext/opcache/tests/preload_user_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var_dump(function_exists("f2"));
2222
?>
2323
OK
2424
--EXPECTF--
25-
%sWarning "opcache.preload_user" is ignored
25+
%sWarning "opcache.preload_user" is ignored because the current user is not "root"
2626
bool(true)
2727
bool(false)
2828
OK

0 commit comments

Comments
 (0)