99short_open_tag = Off
1010
1111; Enables or disables the circular reference collector.
12- ; http ://php.net/zend.enable-gc
12+ ; https ://php.net/zend.enable-gc
1313zend.enable_gc = On
1414
1515; Decides whether PHP may expose the fact that it is installed on the server
1616; (e.g. by adding its signature to the Web server header). It is no security
1717; threat in any way, but it makes it possible to determine whether you use PHP
1818; on your server or not.
19- ; http ://php.net/expose-php
19+ ; https ://php.net/expose-php
2020expose_php = Off
2121
2222; Maximum execution time of each script, in seconds
23- ; http ://php.net/max-execution-time
23+ ; https ://php.net/max-execution-time
2424; Note: This directive is hardcoded to 0 for the CLI SAPI
2525max_execution_time = 240
2626
27- ; Maximum amount of time each script may spend parsing request data. It\ 's a good
27+ ; Maximum amount of time each script may spend parsing request data. It's a good
2828; idea to limit this time on productions servers in order to eliminate unexpectedly
2929; long running scripts.
3030; Note: This directive is hardcoded to -1 for the CLI SAPI
3131; Default Value: -1 (Unlimited)
3232; Development Value: 60 (60 seconds)
3333; Production Value: 60 (60 seconds)
34- ; http ://php.net/max-input-time
34+ ; https ://php.net/max-input-time
3535max_input_time = 60
3636
37- ; Maximum amount of memory a script may consume (128MB)
38- ; http ://php.net/memory-limit
37+ ; Maximum amount of memory a script may consume
38+ ; https ://php.net/memory-limit
3939memory_limit = ${PHP_MEMORY_LIMIT}
4040
4141; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -49,97 +49,86 @@ error_reporting = ${PHP_ERROR_REPORTING}
4949; it could be very dangerous in production environments. Depending on the code
5050; which is triggering the error, sensitive information could potentially leak
5151; out of your application such as database usernames and passwords or worse.
52+ ; https://php.net/display-errors
5253
5354display_errors = ${PHP_DISPLAY_ERRORS}
5455
56+ ; The display of errors which occur during PHP's startup sequence are handled
57+ ; separately from display_errors. We strongly recommend you set this to 'off'
58+ ; for production servers to avoid leaking configuration details.
59+ ; Default Value: On
60+ ; Development Value: On
61+ ; Production Value: Off
62+ ; https://php.net/display-startup-errors
63+ display_startup_errors = Off
64+
5565; Besides displaying errors, PHP can also log errors to locations such as a
5666; server-specific log, STDERR, or a location specified by the error_log
5767; directive found below. While errors should not be displayed on productions
5868; servers they should still be monitored and logging is a great way to do that.
5969; Default Value: Off
6070; Development Value: On
6171; Production Value: On
62- ; http ://php.net/log-errors
72+ ; https ://php.net/log-errors
6373log_errors = On
6474
6575error_log = ${PHP_ERROR_LOG}
6676
67- ; Store the last error/warning message in \$php_errormsg (boolean). Setting this value
68- ; to On can assist in debugging and is appropriate for development servers. It should
69- ; however be disabled on production servers.
70- ; Default Value: Off
71- ; Development Value: On
72- ; Production Value: Off
73- ; http://php.net/track-errors
74- track_errors = Off
75-
7677; When PHP displays or logs an error, it has the capability of formatting the
7778; error message as HTML for easier reading. This directive controls whether
7879; the error message is formatted as HTML or not.
7980; Note: This directive is hardcoded to Off for the CLI SAPI
80- ; Default Value: On
81- ; Development Value: On
82- ; Production value: On
83- ; http://php.net/html-errors
81+ ; https://php.net/html-errors
8482html_errors = Off
8583
86- ; This directive determines whether PHP registers \ $argv & \ $argc each time it
87- ; runs. \ $argv contains an array of all the arguments passed to PHP when a script
88- ; is invoked. \ $argc contains an integer representing the number of arguments
84+ ; This directive determines whether PHP registers $argv & $argc each time it
85+ ; runs. $argv contains an array of all the arguments passed to PHP when a script
86+ ; is invoked. $argc contains an integer representing the number of arguments
8987; that were passed when the script was invoked. These arrays are extremely
9088; useful when running scripts from the command line. When this directive is
9189; enabled, registering these variables consumes CPU cycles and memory each time
92- ; a script is executed. For performance reasons, this feature should be disabled
93- ; on production servers.
94- ; Note: This directive is hardcoded to On for the CLI SAPI
95- ; Default Value: On
96- ; Development Value: Off
97- ; Production Value: Off
98- ; http://php.net/register-argc-argv
90+ ; a script is executed. For security reasons, this feature should be disabled
91+ ; for non-CLI SAPIs.
92+ ; Note: This directive is ignored for the CLI SAPI
93+ ; This directive is deprecated with PHP 8.5.
94+ ; https://php.net/register-argc-argv
9995register_argc_argv = Off
10096
101- ; When enabled, the ENV, REQUEST and SERVER variables are created when they\ 're
97+ ; When enabled, the ENV, REQUEST and SERVER variables are created when they're
10298; first used (Just In Time) instead of when the script starts. If these
10399; variables are not used within a script, having this directive on will result
104100; in a performance gain. The PHP directive register_argc_argv must be disabled
105- ; for this directive to have any affect .
106- ; http ://php.net/auto-globals-jit
101+ ; for this directive to have any effect .
102+ ; https ://php.net/auto-globals-jit
107103auto_globals_jit = On
108104
109105; Maximum size of POST data that PHP will accept.
110106; Its value may be 0 to disable the limit. It is ignored if POST data reading
111107; is disabled through enable_post_data_reading.
112- ; http ://php.net/post-max-size
108+ ; https ://php.net/post-max-size
113109post_max_size = 500M
114110
115- ; By default, PHP will output a character encoding using
116- ; the Content-type: header. To disable sending of the charset, simply
117- ; set it to be empty.
111+ ; By default, PHP will output a media type using the Content-Type header. To
112+ ; disable this, simply set it to be empty.
118113;
119- ; PHP\ 's built-in default is text/html
120- ; http ://php.net/default-mimetype
114+ ; PHP's built-in default media type is set to text/html.
115+ ; https ://php.net/default-mimetype
121116default_mimetype = " text/html"
122117
123- ; PHP\ 's default character set is set to empty .
124- ; http ://php.net/default-charset
118+ ; PHP's default character set is set to UTF-8 .
119+ ; https ://php.net/default-charset
125120default_charset = " UTF-8"
126121
127- ; Always populate the \$HTTP_RAW_POST_DATA variable. PHP\'s default behavior is
128- ; to disable this feature. If post reading is disabled through
129- ; enable_post_data_reading, \$HTTP_RAW_POST_DATA is *NOT* populated.
130- ; http://php.net/always-populate-raw-post-data
131- ; always_populate_raw_post_data = On
132-
133122; ;;;;;;;;;;;;;;;
134123; File Uploads ;
135124; ;;;;;;;;;;;;;;;
136125
137126; Whether to allow HTTP file uploads.
138- ; http ://php.net/file-uploads
127+ ; https ://php.net/file-uploads
139128file_uploads = On
140129
141130; Maximum allowed size for uploaded files.
142- ; http ://php.net/upload-max-filesize
131+ ; https ://php.net/upload-max-filesize
143132upload_max_filesize = 500M
144133
145134; Maximum number of files that can be uploaded via a single request
@@ -155,9 +144,21 @@ cli_server.color = On
155144
156145[Date]
157146; Defines the default timezone used by the date functions
158- ; http ://php.net/date.timezone
147+ ; https ://php.net/date.timezone
159148date.timezone = ${PHP_DATE_TIMEZONE}
160149
150+ [Assertion]
151+ ; Switch whether to compile assertions at all (to have no overhead at run-time)
152+ ; -1: Do not compile at all
153+ ; 0: Jump over assertion at run-time
154+ ; 1: Execute assertions
155+ ; Changing from or to a negative value is only possible in php.ini!
156+ ; (For turning assertions on and off at run-time, toggle zend.assertions between the values 1 and 0)
157+ ; Default Value: 1
158+ ; Development Value: 1
159+ ; Production Value: -1
160+ ; https://php.net/zend.assertions
161+ zend.assertions = -1
161162
162163[opcache]
163164; Load the opcache extension - only needed in PHP up to 8.4
@@ -173,11 +174,11 @@ opcache.enable=1
173174opcache.memory_consumption =80M
174175
175176; The amount of memory for interned strings in Mbytes.
176- ; opcache.interned_strings_buffer=4
177+ ; opcache.interned_strings_buffer=8
177178
178179; The maximum number of keys (scripts) in the OPcache hash table.
179- ; Only numbers between 200 and 100000 are allowed.
180- opcache.max_accelerated_files =5000
180+ ; Only numbers between 200 and 1000000 are allowed.
181+ opcache.max_accelerated_files =30000
181182
182183; The maximum percentage of "wasted" memory until a restart is scheduled.
183184; opcache.max_wasted_percentage=5
@@ -204,22 +205,18 @@ opcache.max_accelerated_files=5000
204205; size of the optimized code.
205206opcache.save_comments =1
206207
207- ; If disabled, PHPDoc comments are not loaded from SHM, so "Doc Comments"
208- ; may be always stored (save_comments=1), but not loaded by applications
209- ; that don\'t need them anyway.
210- ; opcache.load_comments=1
211-
212- ; If enabled, a fast shutdown sequence is used for the accelerated code
213- ; opcache.fast_shutdown=0
208+ ; If enabled, compilation warnings (including notices and deprecations) will
209+ ; be recorded and replayed each time a file is included. Otherwise, compilation
210+ ; warnings will only be emitted when the file is first cached.
211+ ; opcache.record_warnings=0
214212
215213; Allow file existence override (file_exists, etc.) performance feature.
216- ; opcache.enable_file_override=1
214+ ; opcache.enable_file_override=0
217215
218216; A bitmask, where each bit enables or disables the appropriate OPcache
219217; passes
220- ; opcache.optimization_level=0xffffffff
218+ ; opcache.optimization_level=0x7FFFBFFF
221219
222- ; opcache.inherited_hack=1
223220; opcache.dups_fix=0
224221
225222; The location of the OPcache blacklist file (wildcards allowed).
@@ -234,10 +231,6 @@ opcache.save_comments=1
234231; are cached.
235232; opcache.max_file_size=0
236233
237- ; Check the cache checksum each N requests.
238- ; The default value of "0" means that the checks are disabled.
239- ; opcache.consistency_checks=0
240-
241234; How long to wait (in seconds) for a scheduled restart to begin if the cache
242235; is not being accessed.
243236; opcache.force_restart_timeout=180
@@ -251,18 +244,9 @@ opcache.save_comments=1
251244; debug messages (level 4).
252245; opcache.log_verbosity_level=1
253246
254- ; Preferred Shared Memory back-end. Leave empty and let the system decide.
255- ; opcache.preferred_memory_model=
256-
257- ; Protect the shared memory from unexpected writing during script execution.
258- ; Useful for internal debugging only.
259- ; opcache.protect_memory=0
260-
261247; Specifies a PHP script that is going to be compiled and executed at server
262- ; start-up, and which may preload other files, either by including them
263- ; or by using the opcache_compile_file() function. All the entities
264- ; (e.g. functions and classes) defined in these files will be available to
265- ; requests out of the box, until the server is shut down.
248+ ; start-up.
249+ ; https://php.net/opcache.preload
266250opcache.preload = ${PHP_OPCACHE_PRELOAD}
267251
268252[xdebug]
0 commit comments