From 61dcae50d5bdc6e0f9565d63fda58257bc489cdd Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Tue, 3 Sep 2019 14:06:56 +0200 Subject: [PATCH] Document opcache.preload_user directive --- NEWS | 3 +++ UPGRADING | 5 +++++ php.ini-development | 5 +++++ php.ini-production | 5 +++++ 4 files changed, 18 insertions(+) diff --git a/NEWS b/NEWS index 5c9b0881d19..3e61cc2ab5c 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,9 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? ????, PHP 7.4.0RC2 +- Opcache: + . Add opcache.preload_user INI directive. (Dmitry) + - PDO_MySQL: . Fixed bug #41997 (SP call yields additional empty result set). (cmb) diff --git a/UPGRADING b/UPGRADING index 0cef7fc43d1..882157c1fcb 100644 --- a/UPGRADING +++ b/UPGRADING @@ -652,6 +652,11 @@ PHP 7.4 UPGRADE NOTES . New INI directive to include or exclude arguments from stack traces generated for exceptions. +- opcache.preload_user + . New INI directive to specifiy the user account under which preloading code + is executed, if it was to be run as root otherwise (which is not allowed + for security reasons). + ======================================== 12. Windows Support ======================================== diff --git a/php.ini-development b/php.ini-development index d7ba908fe00..920dd5d23a9 100644 --- a/php.ini-development +++ b/php.ini-development @@ -1891,6 +1891,11 @@ ldap.max_links = -1 ; http://php.net/opcache.preload ;opcache.preload= +; Preloading code as root is not allowed for security reasons. This directive +; facilitates to let the preloading to be run as another user. +; http://php.net/opcache.preload_user +;opcache.preload_user= + ; Prevents caching files that are less than this number of seconds old. It ; protects from caching of incompletely updated files. In case all file updates ; on your site are atomic, you may increase performance by setting it to "0". diff --git a/php.ini-production b/php.ini-production index bad4afa7dc2..9a998a4c71b 100644 --- a/php.ini-production +++ b/php.ini-production @@ -1893,6 +1893,11 @@ ldap.max_links = -1 ; http://php.net/opcache.preload ;opcache.preload= +; Preloading code as root is not allowed for security reasons. This directive +; facilitates to let the preloading to be run as another user. +; http://php.net/opcache.preload_user +;opcache.preload_user= + ; Prevents caching files that are less than this number of seconds old. It ; protects from caching of incompletely updated files. In case all file updates ; on your site are atomic, you may increase performance by setting it to "0".