1515; 5. The web server's directory (for SAPI modules), or directory of PHP
1616; (otherwise in Windows)
1717; 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 )
1919; See the PHP docs for more specific information.
2020; http://php.net/configuration.file
2121
5858; An empty string can be denoted by simply not writing anything after the equal
5959; sign, or by using the None keyword:
6060
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'
6464
6565; If you use constants in your value, and these constants belong to a
6666; dynamically loaded extension (either a PHP extension or a Zend extension),
8383; development version only in development environments, as errors shown to
8484; application users can inadvertently leak otherwise secure information.
8585
86- ; This is php.ini-production INI file.
86+ ; This is the php.ini-production INI file.
8787
8888; ;;;;;;;;;;;;;;;;;;
8989; Quick Reference ;
169169; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini"
170170; user_ini.filename = ".user.ini"
171171
172- ; To disable this feature set this option to empty value
172+ ; To disable this feature set this option to an empty value
173173; user_ini.filename =
174174
175175; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes)
@@ -248,7 +248,7 @@ output_buffering = 4096
248248; Production Value: "form="
249249; url_rewriter.tags
250250
251- ; URL rewriter will not rewrites absolute URL nor form by default. To enable
251+ ; URL rewriter will not rewrite absolute URL nor form by default. To enable
252252; absolute URL rewrite, allowed hosts must be defined at RUNTIME.
253253; Refer to session.trans_sid_hosts for more details.
254254; Default Value: ""
@@ -593,6 +593,16 @@ syslog.ident = hestia-php
593593; the message. Only used when error_log is set to syslog.
594594; syslog.facility = user
595595
596+ ; Set this to disable filtering control characters (the default).
597+ ; Some loggers only accept NVT-ASCII, others accept anything that's not
598+ ; control characters. If your logger accepts everything, then no filtering
599+ ; is needed at all.
600+ ; Allowed values are:
601+ ; ascii (only base ASCII characters)
602+ ; no_ctrl (all characters except control characters)
603+ ; all (all characters)
604+ ; syslog.filter = ascii
605+
596606; windows.show_crt_warning
597607; Default value: 0
598608; Development value: 0
@@ -742,13 +752,13 @@ user_dir =
742752
743753; Directory in which the loadable extensions (modules) reside.
744754; http://php.net/extension-dir
745- ; extension_dir = "./"
755+ ; extension_dir = "./"
746756; On windows:
747- ; extension_dir = "ext"
757+ ; extension_dir = "ext"
748758
749759; Directory where the temporary files should be placed.
750760; Defaults to the system default (see sys_get_temp_dir)
751- ; sys_temp_dir = "/tmp"
761+ ; sys_temp_dir = "/tmp"
752762
753763; Whether or not to enable the dl() function. The dl() function does NOT work
754764; properly in multithreaded servers, such as IIS or Zeus, and is automatically
@@ -785,10 +795,9 @@ enable_dl = Off
785795
786796; if cgi.discard_path is enabled, the PHP CGI binary can safely be placed outside
787797; of the web tree and people will not be able to circumvent .htaccess security.
788- ; http://php.net/cgi.dicard-path
789798; cgi.discard_path=1
790799
791- ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
800+ ; FastCGI under IIS supports the ability to impersonate
792801; security tokens of the calling client. This allows IIS to define the
793802; security context that the request runs under. mod_fastcgi under Apache
794803; does not currently support this feature (03/17/2002)
@@ -928,6 +937,7 @@ default_socket_timeout = 60
928937
929938; extension=soap
930939; extension=sockets
940+ ; extension=sodium
931941; extension=sqlite3
932942; extension=tidy
933943; extension=xmlrpc
@@ -968,7 +978,7 @@ date.timezone = UTC
968978[iconv]
969979; Use of this INI entry is deprecated, use global input_encoding instead.
970980; If empty, default_charset or input_encoding or iconv.input_encoding is used.
971- ; The precedence is: default_charset < intput_encoding < iconv.input_encoding
981+ ; The precedence is: default_charset < input_encoding < iconv.input_encoding
972982; iconv.input_encoding =
973983
974984; Use of this INI entry is deprecated, use global internal_encoding instead.
@@ -995,19 +1005,19 @@ date.timezone = UTC
9951005; sqlite3.extension_dir =
9961006
9971007[Pcre]
998- ; PCRE library backtracking limit.
1008+ ; PCRE library backtracking limit.
9991009; http://php.net/pcre.backtrack-limit
10001010; pcre.backtrack_limit=100000
10011011
1002- ; PCRE library recursion limit.
1003- ; Please note that if you set this value to a high number you may consume all
1004- ; the available process stack and eventually crash PHP (due to reaching the
1005- ; stack size limit imposed by the Operating System).
1012+ ; PCRE library recursion limit.
1013+ ; Please note that if you set this value to a high number you may consume all
1014+ ; the available process stack and eventually crash PHP (due to reaching the
1015+ ; stack size limit imposed by the Operating System).
10061016; http://php.net/pcre.recursion-limit
10071017; pcre.recursion_limit=100000
10081018
1009- ; Enables or disables JIT compilation of patterns. This requires the PCRE
1010- ; library to be compiled with JIT support.
1019+ ; Enables or disables JIT compilation of patterns. This requires the PCRE
1020+ ; library to be compiled with JIT support.
10111021; pcre.jit=1
10121022
10131023[Pdo]
@@ -1018,13 +1028,8 @@ date.timezone = UTC
10181028; pdo_odbc.db2_instance_name
10191029
10201030[Pdo_mysql]
1021- ; If mysqlnd is used: Number of cache slots for the internal result set cache
1022- ; http://php.net/pdo_mysql.cache_size
1023- pdo_mysql.cache_size = 2000
1024-
10251031; Default socket name for local MySQL connects. If empty, uses the built-in
10261032; MySQL defaults.
1027- ; http://php.net/pdo_mysql.default-socket
10281033pdo_mysql.default_socket =
10291034
10301035[Phar]
@@ -1106,8 +1111,6 @@ odbc.defaultlrl = 4096
11061111; http://php.net/odbc.defaultbinmode
11071112odbc.defaultbinmode = 1
11081113
1109- ; birdstep.max_links = -1
1110-
11111114[Interbase]
11121115; Allow or prevent persistent links.
11131116ibase.allow_persistent = 1
@@ -1157,10 +1160,6 @@ mysqli.allow_persistent = On
11571160; http://php.net/mysqli.max-links
11581161mysqli.max_links = -1
11591162
1160- ; If mysqlnd is used: Number of cache slots for the internal result set cache
1161- ; http://php.net/mysqli.cache_size
1162- mysqli.cache_size = 2000
1163-
11641163; Default port number for mysqli_connect(). If unset, mysqli_connect() will use
11651164; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
11661165; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
@@ -1195,12 +1194,10 @@ mysqli.reconnect = Off
11951194[mysqlnd]
11961195; Enable / Disable collection of general statistics by mysqlnd which can be
11971196; used to tune and monitor MySQL operations.
1198- ; http://php.net/mysqlnd.collect_statistics
11991197mysqlnd.collect_statistics = On
12001198
12011199; Enable / Disable collection of memory usage statistics by mysqlnd which can be
12021200; used to tune and monitor MySQL operations.
1203- ; http://php.net/mysqlnd.collect_memory_statistics
12041201mysqlnd.collect_memory_statistics = Off
12051202
12061203; Records communication from all extensions using mysqlnd to the specified log
@@ -1209,29 +1206,23 @@ mysqlnd.collect_memory_statistics = Off
12091206; mysqlnd.debug =
12101207
12111208; Defines which queries will be logged.
1212- ; http://php.net/mysqlnd.log_mask
12131209; mysqlnd.log_mask = 0
12141210
12151211; Default size of the mysqlnd memory pool, which is used by result sets.
1216- ; http://php.net/mysqlnd.mempool_default_size
12171212; mysqlnd.mempool_default_size = 16000
12181213
12191214; Size of a pre-allocated buffer used when sending commands to MySQL in bytes.
1220- ; http://php.net/mysqlnd.net_cmd_buffer_size
12211215; mysqlnd.net_cmd_buffer_size = 2048
12221216
12231217; Size of a pre-allocated buffer used for reading data sent by the server in
12241218; bytes.
1225- ; http://php.net/mysqlnd.net_read_buffer_size
12261219; mysqlnd.net_read_buffer_size = 32768
12271220
12281221; Timeout for network requests in seconds.
1229- ; http://php.net/mysqlnd.net_read_timeout
12301222; mysqlnd.net_read_timeout = 31536000
12311223
12321224; SHA-256 Authentication Plugin related. File with the MySQL server public RSA
12331225; key.
1234- ; http://php.net/mysqlnd.sha256_server_public_key
12351226; mysqlnd.sha256_server_public_key =
12361227
12371228[OCI8]
@@ -1356,13 +1347,14 @@ session.save_handler = files
13561347; where MODE is the octal representation of the mode. Note that this
13571348; does not overwrite the process's umask.
13581349; http://php.net/session.save-path
1359- ; session.save_path = "/tmp"
1350+ session.save_path = " /tmp"
13601351
13611352; Whether to use strict session mode.
1362- ; Strict session mode does not accept uninitialized session ID and regenerate
1363- ; session ID if browser sends uninitialized session ID. Strict mode protects
1364- ; applications from session fixation via session adoption vulnerability. It is
1365- ; disabled by default for maximum compatibility, but enabling it is encouraged.
1353+ ; Strict session mode does not accept an uninitialized session ID, and
1354+ ; regenerates the session ID if the browser sends an uninitialized session ID.
1355+ ; Strict mode protects applications from session fixation via a session adoption
1356+ ; vulnerability. It is disabled by default for maximum compatibility, but
1357+ ; enabling it is encouraged.
13661358; https://wiki.php.net/rfc/strict_sessions
13671359session.use_strict_mode = 0
13681360
@@ -1400,11 +1392,17 @@ session.cookie_path = /
14001392; http://php.net/session.cookie-domain
14011393session.cookie_domain =
14021394
1403- ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
1395+ ; Whether or not to add the httpOnly flag to the cookie, which makes it
1396+ ; inaccessible to browser scripting languages such as JavaScript.
14041397; http://php.net/session.cookie-httponly
14051398session.cookie_httponly =
14061399
1407- ; Handler used to serialize data. php is the standard serializer of PHP.
1400+ ; Add SameSite attribute to cookie to help mitigate Cross-Site Request Forgery (CSRF/XSRF)
1401+ ; Current valid values are "Lax" or "Strict"
1402+ ; https://tools.ietf.org/html/draft-west-first-party-cookies-07
1403+ session.cookie_samesite =
1404+
1405+ ; Handler used to serialize data. php is the standard serializer of PHP.
14081406; http://php.net/session.serialize-handler
14091407session.serialize_handler = php
14101408
@@ -1413,7 +1411,7 @@ session.serialize_handler = php
14131411; gc_probability/gc_divisor. Where session.gc_probability is the numerator
14141412; and gc_divisor is the denominator in the equation. Setting this value to 1
14151413; when the session.gc_divisor value is 100 will give you approximately a 1% chance
1416- ; the gc will run on any give request.
1414+ ; the gc will run on any given request.
14171415; Default Value: 1
14181416; Development Value: 1
14191417; Production Value: 1
@@ -1423,10 +1421,10 @@ session.gc_probability = 0
14231421; Defines the probability that the 'garbage collection' process is started on every
14241422; session initialization. The probability is calculated by using the following equation:
14251423; gc_probability/gc_divisor. Where session.gc_probability is the numerator and
1426- ; session.gc_divisor is the denominator in the equation. Setting this value to 1
1427- ; when the session.gc_divisor value is 100 will give you approximately a 1% chance
1428- ; the gc will run on any give request. Increasing this value to 1000 will give you
1429- ; a 0.1% chance the gc will run on any give request. For high volume production servers,
1424+ ; session.gc_divisor is the denominator in the equation. Setting this value to 100
1425+ ; when the session.gc_probability value is 1 will give you approximately a 1% chance
1426+ ; the gc will run on any given request. Increasing this value to 1000 will give you
1427+ ; a 0.1% chance the gc will run on any given request. For high volume production servers,
14301428; this is a more efficient approach.
14311429; Default Value: 100
14321430; Development Value: 1000
@@ -1496,7 +1494,7 @@ session.sid_length = 26
14961494session.trans_sid_tags = " a=href,area=href,frame=src,form="
14971495
14981496; URL rewriter does not rewrite absolute URLs by default.
1499- ; To enable rewrites for absolute pathes , target hosts must be specified
1497+ ; To enable rewrites for absolute paths , target hosts must be specified
15001498; at RUNTIME. i.e. use ini_set()
15011499; <form> tags is special. PHP will check action attribute's URL regardless
15021500; of session.trans_sid_tags setting.
@@ -1585,7 +1583,7 @@ zend.assertions = -1
15851583; http://php.net/assert.active
15861584; assert.active = On
15871585
1588- ; Throw an AssertationException on failed assertions
1586+ ; Throw an AssertionError on failed assertions
15891587; http://php.net/assert.exception
15901588; assert.exception = On
15911589
@@ -1615,7 +1613,7 @@ zend.assertions = -1
16151613; http://php.net/com.allow-dcom
16161614; com.allow_dcom = true
16171615
1618- ; autoregister constants of a components typlib on com_load()
1616+ ; autoregister constants of a component's typlib on com_load()
16191617; http://php.net/com.autoregister-typelib
16201618; com.autoregister_typelib = true
16211619
@@ -1646,9 +1644,9 @@ zend.assertions = -1
16461644
16471645; Use of this INI entry is deprecated, use global input_encoding instead.
16481646; http input encoding.
1649- ; mbstring.encoding_traslation = On is needed to use this setting.
1647+ ; mbstring.encoding_translation = On is needed to use this setting.
16501648; If empty, default_charset or input_encoding or mbstring.input is used.
1651- ; The precedence is: default_charset < intput_encoding < mbsting.http_input
1649+ ; The precedence is: default_charset < input_encoding < mbsting.http_input
16521650; http://php.net/mbstring.http-input
16531651; mbstring.http_input =
16541652
@@ -1817,9 +1815,8 @@ ldap.max_links = -1
18171815
18181816; A bitmask, where each bit enables or disables the appropriate OPcache
18191817; passes
1820- ; opcache.optimization_level=0xffffffff
1818+ ; opcache.optimization_level=0x7FFFBFFF
18211819
1822- ; opcache.inherited_hack=1
18231820; opcache.dups_fix=0
18241821
18251822; The location of the OPcache blacklist file (wildcards allowed).
0 commit comments