Skip to content

Commit 692b7b0

Browse files
committed
temp
1 parent 27b3dce commit 692b7b0

File tree

1 file changed

+68
-59
lines changed

1 file changed

+68
-59
lines changed

php.ini

Lines changed: 68 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
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

@@ -58,9 +58,9 @@
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),
@@ -83,7 +83,7 @@
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-development INI file.
86+
; This is the php.ini-development INI file.
8787

8888
;;;;;;;;;;;;;;;;;;;
8989
; Quick Reference ;
@@ -164,7 +164,7 @@
164164
; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini"
165165
;user_ini.filename = ".user.ini"
166166

167-
; To disable this feature set this option to empty value
167+
; To disable this feature set this option to an empty value
168168
;user_ini.filename =
169169

170170
; 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
243243
; Production Value: "form="
244244
;url_rewriter.tags
245245

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
247247
; absolute URL rewrite, allowed hosts must be defined at RUNTIME.
248248
; Refer to session.trans_sid_hosts for more details.
249249
; Default Value: ""
@@ -392,7 +392,7 @@ max_input_time = 60
392392
;max_input_nesting_level = 64
393393

394394
; How many GET/POST/COOKIE input variables may be accepted
395-
; max_input_vars = 1000
395+
;max_input_vars = 1000
396396

397397
; Maximum amount of memory a script may consume (128MB)
398398
; http://php.net/memory-limit
@@ -578,6 +578,24 @@ html_errors = On
578578
; Log errors to syslog (Event Log on Windows).
579579
;error_log = syslog
580580

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+
581599
;windows.show_crt_warning
582600
; Default value: 0
583601
; Development value: 0
@@ -727,13 +745,13 @@ user_dir =
727745

728746
; Directory in which the loadable extensions (modules) reside.
729747
; http://php.net/extension-dir
730-
; extension_dir = "./"
748+
;extension_dir = "./"
731749
; On windows:
732-
; extension_dir = "ext"
750+
;extension_dir = "ext"
733751

734752
; Directory where the temporary files should be placed.
735753
; Defaults to the system default (see sys_get_temp_dir)
736-
; sys_temp_dir = "/tmp"
754+
;sys_temp_dir = "/tmp"
737755

738756
; Whether or not to enable the dl() function. The dl() function does NOT work
739757
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
@@ -770,10 +788,9 @@ enable_dl = Off
770788

771789
; if cgi.discard_path is enabled, the PHP CGI binary can safely be placed outside
772790
; of the web tree and people will not be able to circumvent .htaccess security.
773-
; http://php.net/cgi.dicard-path
774791
;cgi.discard_path=1
775792

776-
; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
793+
; FastCGI under IIS supports the ability to impersonate
777794
; security tokens of the calling client. This allows IIS to define the
778795
; security context that the request runs under. mod_fastcgi under Apache
779796
; does not currently support this feature (03/17/2002)
@@ -865,7 +882,7 @@ default_socket_timeout = 60
865882
; For example:
866883
;
867884
; extension=mysqli
868-
;
885+
;
869886
; When the extension library to load is not located in the default extension
870887
; directory, You may specify an absolute path to the library file:
871888
;
@@ -913,6 +930,7 @@ default_socket_timeout = 60
913930

914931
;extension=soap
915932
;extension=sockets
933+
;extension=sodium
916934
;extension=sqlite3
917935
;extension=tidy
918936
;extension=xmlrpc
@@ -953,7 +971,7 @@ cli_server.color = On
953971
[iconv]
954972
; Use of this INI entry is deprecated, use global input_encoding instead.
955973
; 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
957975
;iconv.input_encoding =
958976

959977
; Use of this INI entry is deprecated, use global internal_encoding instead.
@@ -980,19 +998,19 @@ cli_server.color = On
980998
;sqlite3.extension_dir =
981999

9821000
[Pcre]
983-
;PCRE library backtracking limit.
1001+
; PCRE library backtracking limit.
9841002
; http://php.net/pcre.backtrack-limit
9851003
;pcre.backtrack_limit=100000
9861004

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).
9911009
; http://php.net/pcre.recursion-limit
9921010
;pcre.recursion_limit=100000
9931011

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.
9961014
;pcre.jit=1
9971015

9981016
[Pdo]
@@ -1003,13 +1021,8 @@ cli_server.color = On
10031021
;pdo_odbc.db2_instance_name
10041022

10051023
[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-
10101024
; Default socket name for local MySQL connects. If empty, uses the built-in
10111025
; MySQL defaults.
1012-
; http://php.net/pdo_mysql.default-socket
10131026
pdo_mysql.default_socket=
10141027

10151028
[Phar]
@@ -1091,8 +1104,6 @@ odbc.defaultlrl = 4096
10911104
; http://php.net/odbc.defaultbinmode
10921105
odbc.defaultbinmode = 1
10931106

1094-
;birdstep.max_links = -1
1095-
10961107
[Interbase]
10971108
; Allow or prevent persistent links.
10981109
ibase.allow_persistent = 1
@@ -1142,10 +1153,6 @@ mysqli.allow_persistent = On
11421153
; http://php.net/mysqli.max-links
11431154
mysqli.max_links = -1
11441155

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-
11491156
; Default port number for mysqli_connect(). If unset, mysqli_connect() will use
11501157
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
11511158
; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
@@ -1180,12 +1187,10 @@ mysqli.reconnect = Off
11801187
[mysqlnd]
11811188
; Enable / Disable collection of general statistics by mysqlnd which can be
11821189
; used to tune and monitor MySQL operations.
1183-
; http://php.net/mysqlnd.collect_statistics
11841190
mysqlnd.collect_statistics = On
11851191

11861192
; Enable / Disable collection of memory usage statistics by mysqlnd which can be
11871193
; used to tune and monitor MySQL operations.
1188-
; http://php.net/mysqlnd.collect_memory_statistics
11891194
mysqlnd.collect_memory_statistics = On
11901195

11911196
; Records communication from all extensions using mysqlnd to the specified log
@@ -1194,29 +1199,23 @@ mysqlnd.collect_memory_statistics = On
11941199
;mysqlnd.debug =
11951200

11961201
; Defines which queries will be logged.
1197-
; http://php.net/mysqlnd.log_mask
11981202
;mysqlnd.log_mask = 0
11991203

12001204
; Default size of the mysqlnd memory pool, which is used by result sets.
1201-
; http://php.net/mysqlnd.mempool_default_size
12021205
;mysqlnd.mempool_default_size = 16000
12031206

12041207
; Size of a pre-allocated buffer used when sending commands to MySQL in bytes.
1205-
; http://php.net/mysqlnd.net_cmd_buffer_size
12061208
;mysqlnd.net_cmd_buffer_size = 2048
12071209

12081210
; Size of a pre-allocated buffer used for reading data sent by the server in
12091211
; bytes.
1210-
; http://php.net/mysqlnd.net_read_buffer_size
12111212
;mysqlnd.net_read_buffer_size = 32768
12121213

12131214
; Timeout for network requests in seconds.
1214-
; http://php.net/mysqlnd.net_read_timeout
12151215
;mysqlnd.net_read_timeout = 31536000
12161216

12171217
; SHA-256 Authentication Plugin related. File with the MySQL server public RSA
12181218
; key.
1219-
; http://php.net/mysqlnd.sha256_server_public_key
12201219
;mysqlnd.sha256_server_public_key =
12211220

12221221
[OCI8]
@@ -1344,10 +1343,11 @@ session.save_handler = files
13441343
;session.save_path = "/tmp"
13451344

13461345
; 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.
13511351
; https://wiki.php.net/rfc/strict_sessions
13521352
session.use_strict_mode = 0
13531353

@@ -1385,11 +1385,17 @@ session.cookie_path = /
13851385
; http://php.net/session.cookie-domain
13861386
session.cookie_domain =
13871387

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.
13891390
; http://php.net/session.cookie-httponly
13901391
session.cookie_httponly =
13911392

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.
13931399
; http://php.net/session.serialize-handler
13941400
session.serialize_handler = php
13951401

@@ -1398,7 +1404,7 @@ session.serialize_handler = php
13981404
; gc_probability/gc_divisor. Where session.gc_probability is the numerator
13991405
; and gc_divisor is the denominator in the equation. Setting this value to 1
14001406
; 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.
14021408
; Default Value: 1
14031409
; Development Value: 1
14041410
; Production Value: 1
@@ -1408,10 +1414,10 @@ session.gc_probability = 1
14081414
; Defines the probability that the 'garbage collection' process is started on every
14091415
; session initialization. The probability is calculated by using the following equation:
14101416
; 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,
14151421
; this is a more efficient approach.
14161422
; Default Value: 100
14171423
; Development Value: 1000
@@ -1481,7 +1487,7 @@ session.sid_length = 26
14811487
session.trans_sid_tags = "a=href,area=href,frame=src,form="
14821488

14831489
; 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
14851491
; at RUNTIME. i.e. use ini_set()
14861492
; <form> tags is special. PHP will check action attribute's URL regardless
14871493
; of session.trans_sid_tags setting.
@@ -1570,7 +1576,7 @@ zend.assertions = 1
15701576
; http://php.net/assert.active
15711577
;assert.active = On
15721578

1573-
; Throw an AssertationException on failed assertions
1579+
; Throw an AssertionError on failed assertions
15741580
; http://php.net/assert.exception
15751581
;assert.exception = On
15761582

@@ -1600,7 +1606,7 @@ zend.assertions = 1
16001606
; http://php.net/com.allow-dcom
16011607
;com.allow_dcom = true
16021608

1603-
; autoregister constants of a components typlib on com_load()
1609+
; autoregister constants of a component's typlib on com_load()
16041610
; http://php.net/com.autoregister-typelib
16051611
;com.autoregister_typelib = true
16061612

@@ -1631,9 +1637,9 @@ zend.assertions = 1
16311637

16321638
; Use of this INI entry is deprecated, use global input_encoding instead.
16331639
; 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.
16351641
; 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
16371643
; http://php.net/mbstring.http-input
16381644
;mbstring.http_input =
16391645

@@ -1802,9 +1808,8 @@ ldap.max_links = -1
18021808

18031809
; A bitmask, where each bit enables or disables the appropriate OPcache
18041810
; passes
1805-
;opcache.optimization_level=0xffffffff
1811+
;opcache.optimization_level=0x7FFFBFFF
18061812

1807-
;opcache.inherited_hack=1
18081813
;opcache.dups_fix=0
18091814

18101815
; The location of the OPcache blacklist file (wildcards allowed).
@@ -1879,6 +1884,10 @@ ldap.max_links = -1
18791884
; Prevent name collisions in chroot'ed environment.
18801885
;opcache.validate_root=0
18811886

1887+
; If specified, it produces opcode dumps for debugging different stages of
1888+
; optimizations.
1889+
;opcache.opt_debug_level=0
1890+
18821891
[curl]
18831892
; A default value for the CURLOPT_CAINFO option. This is required to be an
18841893
; absolute path.

0 commit comments

Comments
 (0)