Skip to content

Commit 61dcae5

Browse files
committed
Document opcache.preload_user directive
1 parent 6255308 commit 61dcae5

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 7.4.0RC2
44

5+
- Opcache:
6+
. Add opcache.preload_user INI directive. (Dmitry)
7+
58
- PDO_MySQL:
69
. Fixed bug #41997 (SP call yields additional empty result set). (cmb)
710

UPGRADING

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,11 @@ PHP 7.4 UPGRADE NOTES
652652
. New INI directive to include or exclude arguments from stack traces
653653
generated for exceptions.
654654

655+
- opcache.preload_user
656+
. New INI directive to specifiy the user account under which preloading code
657+
is executed, if it was to be run as root otherwise (which is not allowed
658+
for security reasons).
659+
655660
========================================
656661
12. Windows Support
657662
========================================

php.ini-development

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1891,6 +1891,11 @@ ldap.max_links = -1
18911891
; http://php.net/opcache.preload
18921892
;opcache.preload=
18931893

1894+
; Preloading code as root is not allowed for security reasons. This directive
1895+
; facilitates to let the preloading to be run as another user.
1896+
; http://php.net/opcache.preload_user
1897+
;opcache.preload_user=
1898+
18941899
; Prevents caching files that are less than this number of seconds old. It
18951900
; protects from caching of incompletely updated files. In case all file updates
18961901
; on your site are atomic, you may increase performance by setting it to "0".

php.ini-production

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1893,6 +1893,11 @@ ldap.max_links = -1
18931893
; http://php.net/opcache.preload
18941894
;opcache.preload=
18951895

1896+
; Preloading code as root is not allowed for security reasons. This directive
1897+
; facilitates to let the preloading to be run as another user.
1898+
; http://php.net/opcache.preload_user
1899+
;opcache.preload_user=
1900+
18961901
; Prevents caching files that are less than this number of seconds old. It
18971902
; protects from caching of incompletely updated files. In case all file updates
18981903
; on your site are atomic, you may increase performance by setting it to "0".

0 commit comments

Comments
 (0)