15
15
; 5. The web server's directory (for SAPI modules), or directory of PHP
16
16
; (otherwise in Windows)
17
17
; 6. The directory from the --with-config-file-path compile time option, or the
18
- ; Windows directory (C:\windows or C:\winnt )
18
+ ; Windows directory (usually C:\windows )
19
19
; See the PHP docs for more specific information.
20
20
; http://php.net/configuration.file
21
21
58
58
; An empty string can be denoted by simply not writing anything after the equal
59
59
; sign, or by using the None keyword:
60
60
61
- ; foo = ; sets foo to an empty string
62
- ; foo = None ; sets foo to an empty string
63
- ; foo = "None" ; sets foo to the string 'None'
61
+ ; foo = ; sets foo to an empty string
62
+ ; foo = None ; sets foo to an empty string
63
+ ; foo = "None" ; sets foo to the string 'None'
64
64
65
65
; If you use constants in your value, and these constants belong to a
66
66
; dynamically loaded extension (either a PHP extension or a Zend extension),
83
83
; development version only in development environments, as errors shown to
84
84
; application users can inadvertently leak otherwise secure information.
85
85
86
- ; This is php.ini-development INI file.
86
+ ; This is the php.ini-development INI file.
87
87
88
88
; ;;;;;;;;;;;;;;;;;;
89
89
; Quick Reference ;
164
164
; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini"
165
165
; user_ini.filename = ".user.ini"
166
166
167
- ; To disable this feature set this option to empty value
167
+ ; To disable this feature set this option to an empty value
168
168
; user_ini.filename =
169
169
170
170
; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes)
@@ -243,7 +243,7 @@ output_buffering = 4096
243
243
; Production Value: "form="
244
244
; url_rewriter.tags
245
245
246
- ; URL rewriter will not rewrites absolute URL nor form by default. To enable
246
+ ; URL rewriter will not rewrite absolute URL nor form by default. To enable
247
247
; absolute URL rewrite, allowed hosts must be defined at RUNTIME.
248
248
; Refer to session.trans_sid_hosts for more details.
249
249
; Default Value: ""
@@ -392,7 +392,7 @@ max_input_time = 60
392
392
; max_input_nesting_level = 64
393
393
394
394
; How many GET/POST/COOKIE input variables may be accepted
395
- ; max_input_vars = 1000
395
+ ; max_input_vars = 1000
396
396
397
397
; Maximum amount of memory a script may consume (128MB)
398
398
; http://php.net/memory-limit
@@ -578,6 +578,24 @@ html_errors = On
578
578
; Log errors to syslog (Event Log on Windows).
579
579
; error_log = syslog
580
580
581
+ ; The syslog ident is a string which is prepended to every message logged
582
+ ; to syslog. Only used when error_log is set to syslog.
583
+ ; syslog.ident = php
584
+
585
+ ; The syslog facility is used to specify what type of program is logging
586
+ ; the message. Only used when error_log is set to syslog.
587
+ ; syslog.facility = user
588
+
589
+ ; Set this to disable filtering control characters (the default).
590
+ ; Some loggers only accept NVT-ASCII, others accept anything that's not
591
+ ; control characters. If your logger accepts everything, then no filtering
592
+ ; is needed at all.
593
+ ; Allowed values are:
594
+ ; ascii (only base ASCII characters)
595
+ ; no_ctrl (all characters except control characters)
596
+ ; all (all characters)
597
+ ; syslog.filter = ascii
598
+
581
599
; windows.show_crt_warning
582
600
; Default value: 0
583
601
; Development value: 0
@@ -727,13 +745,13 @@ user_dir =
727
745
728
746
; Directory in which the loadable extensions (modules) reside.
729
747
; http://php.net/extension-dir
730
- ; extension_dir = "./"
748
+ ; extension_dir = "./"
731
749
; On windows:
732
- ; extension_dir = "ext"
750
+ ; extension_dir = "ext"
733
751
734
752
; Directory where the temporary files should be placed.
735
753
; Defaults to the system default (see sys_get_temp_dir)
736
- ; sys_temp_dir = "/tmp"
754
+ ; sys_temp_dir = "/tmp"
737
755
738
756
; Whether or not to enable the dl() function. The dl() function does NOT work
739
757
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
@@ -770,10 +788,9 @@ enable_dl = Off
770
788
771
789
; if cgi.discard_path is enabled, the PHP CGI binary can safely be placed outside
772
790
; of the web tree and people will not be able to circumvent .htaccess security.
773
- ; http://php.net/cgi.dicard-path
774
791
; cgi.discard_path=1
775
792
776
- ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
793
+ ; FastCGI under IIS supports the ability to impersonate
777
794
; security tokens of the calling client. This allows IIS to define the
778
795
; security context that the request runs under. mod_fastcgi under Apache
779
796
; does not currently support this feature (03/17/2002)
@@ -865,7 +882,7 @@ default_socket_timeout = 60
865
882
; For example:
866
883
;
867
884
; extension=mysqli
868
- ;
885
+ ;
869
886
; When the extension library to load is not located in the default extension
870
887
; directory, You may specify an absolute path to the library file:
871
888
;
@@ -913,6 +930,7 @@ default_socket_timeout = 60
913
930
914
931
; extension=soap
915
932
; extension=sockets
933
+ ; extension=sodium
916
934
; extension=sqlite3
917
935
; extension=tidy
918
936
; extension=xmlrpc
@@ -953,7 +971,7 @@ cli_server.color = On
953
971
[iconv]
954
972
; Use of this INI entry is deprecated, use global input_encoding instead.
955
973
; If empty, default_charset or input_encoding or iconv.input_encoding is used.
956
- ; The precedence is: default_charset < intput_encoding < iconv.input_encoding
974
+ ; The precedence is: default_charset < input_encoding < iconv.input_encoding
957
975
; iconv.input_encoding =
958
976
959
977
; Use of this INI entry is deprecated, use global internal_encoding instead.
@@ -980,19 +998,19 @@ cli_server.color = On
980
998
; sqlite3.extension_dir =
981
999
982
1000
[Pcre]
983
- ; PCRE library backtracking limit.
1001
+ ; PCRE library backtracking limit.
984
1002
; http://php.net/pcre.backtrack-limit
985
1003
; pcre.backtrack_limit=100000
986
1004
987
- ; PCRE library recursion limit.
988
- ; Please note that if you set this value to a high number you may consume all
989
- ; the available process stack and eventually crash PHP (due to reaching the
990
- ; stack size limit imposed by the Operating System).
1005
+ ; PCRE library recursion limit.
1006
+ ; Please note that if you set this value to a high number you may consume all
1007
+ ; the available process stack and eventually crash PHP (due to reaching the
1008
+ ; stack size limit imposed by the Operating System).
991
1009
; http://php.net/pcre.recursion-limit
992
1010
; pcre.recursion_limit=100000
993
1011
994
- ; Enables or disables JIT compilation of patterns. This requires the PCRE
995
- ; library to be compiled with JIT support.
1012
+ ; Enables or disables JIT compilation of patterns. This requires the PCRE
1013
+ ; library to be compiled with JIT support.
996
1014
; pcre.jit=1
997
1015
998
1016
[Pdo]
@@ -1003,13 +1021,8 @@ cli_server.color = On
1003
1021
; pdo_odbc.db2_instance_name
1004
1022
1005
1023
[Pdo_mysql]
1006
- ; If mysqlnd is used: Number of cache slots for the internal result set cache
1007
- ; http://php.net/pdo_mysql.cache_size
1008
- pdo_mysql.cache_size = 2000
1009
-
1010
1024
; Default socket name for local MySQL connects. If empty, uses the built-in
1011
1025
; MySQL defaults.
1012
- ; http://php.net/pdo_mysql.default-socket
1013
1026
pdo_mysql.default_socket =
1014
1027
1015
1028
[Phar]
@@ -1091,8 +1104,6 @@ odbc.defaultlrl = 4096
1091
1104
; http://php.net/odbc.defaultbinmode
1092
1105
odbc.defaultbinmode = 1
1093
1106
1094
- ; birdstep.max_links = -1
1095
-
1096
1107
[Interbase]
1097
1108
; Allow or prevent persistent links.
1098
1109
ibase.allow_persistent = 1
@@ -1142,10 +1153,6 @@ mysqli.allow_persistent = On
1142
1153
; http://php.net/mysqli.max-links
1143
1154
mysqli.max_links = -1
1144
1155
1145
- ; If mysqlnd is used: Number of cache slots for the internal result set cache
1146
- ; http://php.net/mysqli.cache_size
1147
- mysqli.cache_size = 2000
1148
-
1149
1156
; Default port number for mysqli_connect(). If unset, mysqli_connect() will use
1150
1157
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
1151
1158
; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
@@ -1180,12 +1187,10 @@ mysqli.reconnect = Off
1180
1187
[mysqlnd]
1181
1188
; Enable / Disable collection of general statistics by mysqlnd which can be
1182
1189
; used to tune and monitor MySQL operations.
1183
- ; http://php.net/mysqlnd.collect_statistics
1184
1190
mysqlnd.collect_statistics = On
1185
1191
1186
1192
; Enable / Disable collection of memory usage statistics by mysqlnd which can be
1187
1193
; used to tune and monitor MySQL operations.
1188
- ; http://php.net/mysqlnd.collect_memory_statistics
1189
1194
mysqlnd.collect_memory_statistics = On
1190
1195
1191
1196
; Records communication from all extensions using mysqlnd to the specified log
@@ -1194,29 +1199,23 @@ mysqlnd.collect_memory_statistics = On
1194
1199
; mysqlnd.debug =
1195
1200
1196
1201
; Defines which queries will be logged.
1197
- ; http://php.net/mysqlnd.log_mask
1198
1202
; mysqlnd.log_mask = 0
1199
1203
1200
1204
; Default size of the mysqlnd memory pool, which is used by result sets.
1201
- ; http://php.net/mysqlnd.mempool_default_size
1202
1205
; mysqlnd.mempool_default_size = 16000
1203
1206
1204
1207
; Size of a pre-allocated buffer used when sending commands to MySQL in bytes.
1205
- ; http://php.net/mysqlnd.net_cmd_buffer_size
1206
1208
; mysqlnd.net_cmd_buffer_size = 2048
1207
1209
1208
1210
; Size of a pre-allocated buffer used for reading data sent by the server in
1209
1211
; bytes.
1210
- ; http://php.net/mysqlnd.net_read_buffer_size
1211
1212
; mysqlnd.net_read_buffer_size = 32768
1212
1213
1213
1214
; Timeout for network requests in seconds.
1214
- ; http://php.net/mysqlnd.net_read_timeout
1215
1215
; mysqlnd.net_read_timeout = 31536000
1216
1216
1217
1217
; SHA-256 Authentication Plugin related. File with the MySQL server public RSA
1218
1218
; key.
1219
- ; http://php.net/mysqlnd.sha256_server_public_key
1220
1219
; mysqlnd.sha256_server_public_key =
1221
1220
1222
1221
[OCI8]
@@ -1344,10 +1343,11 @@ session.save_handler = files
1344
1343
; session.save_path = "/tmp"
1345
1344
1346
1345
; Whether to use strict session mode.
1347
- ; Strict session mode does not accept uninitialized session ID and regenerate
1348
- ; session ID if browser sends uninitialized session ID. Strict mode protects
1349
- ; applications from session fixation via session adoption vulnerability. It is
1350
- ; disabled by default for maximum compatibility, but enabling it is encouraged.
1346
+ ; Strict session mode does not accept an uninitialized session ID, and
1347
+ ; regenerates the session ID if the browser sends an uninitialized session ID.
1348
+ ; Strict mode protects applications from session fixation via a session adoption
1349
+ ; vulnerability. It is disabled by default for maximum compatibility, but
1350
+ ; enabling it is encouraged.
1351
1351
; https://wiki.php.net/rfc/strict_sessions
1352
1352
session.use_strict_mode = 0
1353
1353
@@ -1385,11 +1385,17 @@ session.cookie_path = /
1385
1385
; http://php.net/session.cookie-domain
1386
1386
session.cookie_domain =
1387
1387
1388
- ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
1388
+ ; Whether or not to add the httpOnly flag to the cookie, which makes it
1389
+ ; inaccessible to browser scripting languages such as JavaScript.
1389
1390
; http://php.net/session.cookie-httponly
1390
1391
session.cookie_httponly =
1391
1392
1392
- ; Handler used to serialize data. php is the standard serializer of PHP.
1393
+ ; Add SameSite attribute to cookie to help mitigate Cross-Site Request Forgery (CSRF/XSRF)
1394
+ ; Current valid values are "Lax" or "Strict"
1395
+ ; https://tools.ietf.org/html/draft-west-first-party-cookies-07
1396
+ session.cookie_samesite =
1397
+
1398
+ ; Handler used to serialize data. php is the standard serializer of PHP.
1393
1399
; http://php.net/session.serialize-handler
1394
1400
session.serialize_handler = php
1395
1401
@@ -1398,7 +1404,7 @@ session.serialize_handler = php
1398
1404
; gc_probability/gc_divisor. Where session.gc_probability is the numerator
1399
1405
; and gc_divisor is the denominator in the equation. Setting this value to 1
1400
1406
; when the session.gc_divisor value is 100 will give you approximately a 1% chance
1401
- ; the gc will run on any give request.
1407
+ ; the gc will run on any given request.
1402
1408
; Default Value: 1
1403
1409
; Development Value: 1
1404
1410
; Production Value: 1
@@ -1408,10 +1414,10 @@ session.gc_probability = 1
1408
1414
; Defines the probability that the 'garbage collection' process is started on every
1409
1415
; session initialization. The probability is calculated by using the following equation:
1410
1416
; gc_probability/gc_divisor. Where session.gc_probability is the numerator and
1411
- ; session.gc_divisor is the denominator in the equation. Setting this value to 1
1412
- ; when the session.gc_divisor value is 100 will give you approximately a 1% chance
1413
- ; the gc will run on any give request. Increasing this value to 1000 will give you
1414
- ; a 0.1% chance the gc will run on any give request. For high volume production servers,
1417
+ ; session.gc_divisor is the denominator in the equation. Setting this value to 100
1418
+ ; when the session.gc_probability value is 1 will give you approximately a 1% chance
1419
+ ; the gc will run on any given request. Increasing this value to 1000 will give you
1420
+ ; a 0.1% chance the gc will run on any given request. For high volume production servers,
1415
1421
; this is a more efficient approach.
1416
1422
; Default Value: 100
1417
1423
; Development Value: 1000
@@ -1481,7 +1487,7 @@ session.sid_length = 26
1481
1487
session.trans_sid_tags = " a=href,area=href,frame=src,form="
1482
1488
1483
1489
; URL rewriter does not rewrite absolute URLs by default.
1484
- ; To enable rewrites for absolute pathes , target hosts must be specified
1490
+ ; To enable rewrites for absolute paths , target hosts must be specified
1485
1491
; at RUNTIME. i.e. use ini_set()
1486
1492
; <form> tags is special. PHP will check action attribute's URL regardless
1487
1493
; of session.trans_sid_tags setting.
@@ -1570,7 +1576,7 @@ zend.assertions = 1
1570
1576
; http://php.net/assert.active
1571
1577
; assert.active = On
1572
1578
1573
- ; Throw an AssertationException on failed assertions
1579
+ ; Throw an AssertionError on failed assertions
1574
1580
; http://php.net/assert.exception
1575
1581
; assert.exception = On
1576
1582
@@ -1600,7 +1606,7 @@ zend.assertions = 1
1600
1606
; http://php.net/com.allow-dcom
1601
1607
; com.allow_dcom = true
1602
1608
1603
- ; autoregister constants of a components typlib on com_load()
1609
+ ; autoregister constants of a component's typlib on com_load()
1604
1610
; http://php.net/com.autoregister-typelib
1605
1611
; com.autoregister_typelib = true
1606
1612
@@ -1631,9 +1637,9 @@ zend.assertions = 1
1631
1637
1632
1638
; Use of this INI entry is deprecated, use global input_encoding instead.
1633
1639
; http input encoding.
1634
- ; mbstring.encoding_traslation = On is needed to use this setting.
1640
+ ; mbstring.encoding_translation = On is needed to use this setting.
1635
1641
; If empty, default_charset or input_encoding or mbstring.input is used.
1636
- ; The precedence is: default_charset < intput_encoding < mbsting.http_input
1642
+ ; The precedence is: default_charset < input_encoding < mbsting.http_input
1637
1643
; http://php.net/mbstring.http-input
1638
1644
; mbstring.http_input =
1639
1645
@@ -1802,9 +1808,8 @@ ldap.max_links = -1
1802
1808
1803
1809
; A bitmask, where each bit enables or disables the appropriate OPcache
1804
1810
; passes
1805
- ; opcache.optimization_level=0xffffffff
1811
+ ; opcache.optimization_level=0x7FFFBFFF
1806
1812
1807
- ; opcache.inherited_hack=1
1808
1813
; opcache.dups_fix=0
1809
1814
1810
1815
; The location of the OPcache blacklist file (wildcards allowed).
@@ -1879,6 +1884,10 @@ ldap.max_links = -1
1879
1884
; Prevent name collisions in chroot'ed environment.
1880
1885
; opcache.validate_root=0
1881
1886
1887
+ ; If specified, it produces opcode dumps for debugging different stages of
1888
+ ; optimizations.
1889
+ ; opcache.opt_debug_level=0
1890
+
1882
1891
[curl]
1883
1892
; A default value for the CURLOPT_CAINFO option. This is required to be an
1884
1893
; absolute path.
0 commit comments