Skip to content

Commit 43f21e1

Browse files
committed
Update php.ini
8.0.0RC2
1 parent 47f51fd commit 43f21e1

File tree

1 file changed

+48
-50
lines changed

1 file changed

+48
-50
lines changed

php.ini

Lines changed: 48 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
;;;;;;;;;;;;;;;;;;;
8989
; Quick Reference ;
9090
;;;;;;;;;;;;;;;;;;;
91+
9192
; The following are all the settings which are different in either the production
9293
; or development versions of the INIs with respect to PHP's default behavior.
9394
; Please see the actual settings later in the document for more details as to why
@@ -99,12 +100,12 @@
99100
; Production Value: Off
100101

101102
; display_startup_errors
102-
; Default Value: Off
103+
; Default Value: On
103104
; Development Value: On
104105
; Production Value: Off
105106

106107
; error_reporting
107-
; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
108+
; Default Value: E_ALL
108109
; Development Value: E_ALL
109110
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
110111

@@ -153,6 +154,16 @@
153154
; Development Value: "GPCS"
154155
; Production Value: "GPCS"
155156

157+
; zend.exception_ignore_args
158+
; Default Value: Off
159+
; Development Value: Off
160+
; Production Value: On
161+
162+
; zend.exception_string_param_max_len
163+
; Default Value: 15
164+
; Development Value: 15
165+
; Production Value: 0
166+
156167
;;;;;;;;;;;;;;;;;;;;
157168
; php.ini Options ;
158169
;;;;;;;;;;;;;;;;;;;;
@@ -352,19 +363,29 @@ zend.enable_gc = On
352363
; If enabled, scripts may be written in encodings that are incompatible with
353364
; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such
354365
; encodings. To use this feature, mbstring extension must be enabled.
355-
; Default: Off
356366
;zend.multibyte = Off
357367

358368
; Allows to set the default encoding for the scripts. This value will be used
359369
; unless "declare(encoding=...)" directive appears at the top of the script.
360370
; Only affects if zend.multibyte is set.
361-
; Default: ""
362371
;zend.script_encoding =
363372

364-
; Allows to include or exclude arguments from stack traces generated for exceptions
365-
; Default: Off
373+
; Allows to include or exclude arguments from stack traces generated for exceptions.
374+
; In production, it is recommended to turn this setting on to prohibit the output
375+
; of sensitive information in stack traces
376+
; Default Value: Off
377+
; Development Value: Off
378+
; Production Value: On
366379
zend.exception_ignore_args = Off
367380

381+
; Allows setting the maximum string length in an argument of a stringified stack trace
382+
; to a value between 0 and 1000000.
383+
; This has no effect when zend.exception_ignore_args is enabled.
384+
; Default Value: 15
385+
; Development Value: 15
386+
; Production Value: 0
387+
zend.exception_string_param_max_len = 15
388+
368389
;;;;;;;;;;;;;;;;;
369390
; Miscellaneous ;
370391
;;;;;;;;;;;;;;;;;
@@ -456,7 +477,7 @@ memory_limit = 128M
456477
; E_ALL & ~E_NOTICE (Show all errors, except for notices)
457478
; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding standards warnings.)
458479
; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors)
459-
; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
480+
; Default Value: E_ALL
460481
; Development Value: E_ALL
461482
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
462483
; http://php.net/error-reporting
@@ -480,11 +501,9 @@ error_reporting = E_ALL
480501
display_errors = On
481502

482503
; The display of errors which occur during PHP's startup sequence are handled
483-
; separately from display_errors. PHP's default behavior is to suppress those
484-
; errors from clients. Turning the display of startup errors on can be useful in
485-
; debugging configuration problems. We strongly recommend you
486-
; set this to 'off' for production servers.
487-
; Default Value: Off
504+
; separately from display_errors. We strongly recommend you set this to 'off'
505+
; for production servers to avoid leaking configuration details.
506+
; Default Value: On
488507
; Development Value: On
489508
; Production Value: Off
490509
; http://php.net/display-startup-errors
@@ -522,17 +541,9 @@ ignore_repeated_source = Off
522541
; http://php.net/report-memleaks
523542
report_memleaks = On
524543

525-
; This setting is on by default.
544+
; This setting is off by default.
526545
;report_zend_debug = 0
527546

528-
; Store the last error/warning message in $php_errormsg (boolean).
529-
; This directive is DEPRECATED.
530-
; Default Value: Off
531-
; Development Value: Off
532-
; Production Value: Off
533-
; http://php.net/track-errors
534-
;track_errors = Off
535-
536547
; Turn off normal error reporting and emit XML-RPC error XML
537548
; http://php.net/xmlrpc-errors
538549
;xmlrpc_errors = 0
@@ -911,7 +922,7 @@ default_socket_timeout = 60
911922
;extension=ffi
912923
;extension=ftp
913924
;extension=fileinfo
914-
;extension=gd2
925+
;extension=gd
915926
;extension=gettext
916927
;extension=gmp
917928
;extension=intl
@@ -941,9 +952,10 @@ default_socket_timeout = 60
941952
;extension=sodium
942953
;extension=sqlite3
943954
;extension=tidy
944-
;extension=xmlrpc
945955
;extension=xsl
946956

957+
;zend_extension=opcache
958+
947959
;;;;;;;;;;;;;;;;;;;
948960
; Module Settings ;
949961
;;;;;;;;;;;;;;;;;;;
@@ -964,10 +976,10 @@ cli_server.color = On
964976
;date.default_longitude = 35.2333
965977

966978
; http://php.net/date.sunrise-zenith
967-
;date.sunrise_zenith = 90.583333
979+
;date.sunrise_zenith = 90.833333
968980

969981
; http://php.net/date.sunset-zenith
970-
;date.sunset_zenith = 90.583333
982+
;date.sunset_zenith = 90.833333
971983

972984
[filter]
973985
; http://php.net/filter.default
@@ -1044,8 +1056,6 @@ cli_server.color = On
10441056
; http://php.net/pdo-odbc.connection-pooling
10451057
;pdo_odbc.connection_pooling=strict
10461058

1047-
;pdo_odbc.db2_instance_name
1048-
10491059
[Pdo_mysql]
10501060
; Default socket name for local MySQL connects. If empty, uses the built-in
10511061
; MySQL defaults.
@@ -1581,13 +1591,6 @@ zend.assertions = 1
15811591
; http://php.net/assert.callback
15821592
;assert.callback = 0
15831593

1584-
; Eval the expression with current error_reporting(). Set to true if you want
1585-
; error_reporting(0) around the eval().
1586-
; http://php.net/assert.quiet-eval
1587-
;assert.quiet_eval = 0
1588-
1589-
1590-
15911594
[COM]
15921595
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
15931596
; http://php.net/com.typelib-file
@@ -1613,6 +1616,10 @@ zend.assertions = 1
16131616
; Default: system ANSI code page
16141617
;com.code_page=
16151618

1619+
; The version of the .NET framework to use. The value of the setting are the first three parts
1620+
; of the framework's version number, separated by dots, and prefixed with "v", e.g. "v4.0.30319".
1621+
;com.dotnet_version=
1622+
16161623
[mbstring]
16171624
; language for internal character representation.
16181625
; This affects mb_send_mail() and mbstring.detect_order.
@@ -1662,20 +1669,8 @@ zend.assertions = 1
16621669
; http://php.net/mbstring.substitute-character
16631670
;mbstring.substitute_character = none
16641671

1665-
; overload(replace) single byte functions by mbstring functions.
1666-
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
1667-
; etc. Possible values are 0,1,2,4 or combination of them.
1668-
; For example, 7 for overload everything.
1669-
; 0: No overload
1670-
; 1: Overload mail() function
1671-
; 2: Overload str*() functions
1672-
; 4: Overload ereg*() functions
1673-
; http://php.net/mbstring.func-overload
1674-
;mbstring.func_overload = 0
1675-
1676-
; enable strict encoding detection.
1677-
; Default: Off
1678-
;mbstring.strict_detection = On
1672+
; Enable strict encoding detection.
1673+
;mbstring.strict_detection = Off
16791674

16801675
; This directive specifies the regex pattern of content types for which mb_output_handler()
16811676
; is activated.
@@ -1684,12 +1679,10 @@ zend.assertions = 1
16841679

16851680
; This directive specifies maximum stack depth for mbstring regular expressions. It is similar
16861681
; to the pcre.recursion_limit for PCRE.
1687-
; Default: 100000
16881682
;mbstring.regex_stack_limit=100000
16891683

16901684
; This directive specifies maximum retry count for mbstring regular expressions. It is similar
16911685
; to the pcre.backtrack_limit for PCRE.
1692-
; Default: 1000000
16931686
;mbstring.regex_retry_limit=1000000
16941687

16951688
[gd]
@@ -1804,6 +1797,11 @@ ldap.max_links = -1
18041797
; size of the optimized code.
18051798
;opcache.save_comments=1
18061799

1800+
; If enabled, compilation warnings (including notices and deprecations) will
1801+
; be recorded and replayed each time a file is included. Otherwise, compilation
1802+
; warnings will only be emitted when the file is first cached.
1803+
;opcache.record_warnings=0
1804+
18071805
; Allow file existence override (file_exists, etc.) performance feature.
18081806
;opcache.enable_file_override=0
18091807

0 commit comments

Comments
 (0)