Skip to content

Commit 9250abf

Browse files
committed
php.ini cleanup
[ci skip]
1 parent c9434a4 commit 9250abf

File tree

2 files changed

+23
-17
lines changed

2 files changed

+23
-17
lines changed

php.ini-development

+12-9
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
@@ -153,6 +154,11 @@
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+
156162
;;;;;;;;;;;;;;;;;;;;
157163
; php.ini Options ;
158164
;;;;;;;;;;;;;;;;;;;;
@@ -352,17 +358,17 @@ zend.enable_gc = On
352358
; If enabled, scripts may be written in encodings that are incompatible with
353359
; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such
354360
; encodings. To use this feature, mbstring extension must be enabled.
355-
; Default: Off
356361
;zend.multibyte = Off
357362

358363
; Allows to set the default encoding for the scripts. This value will be used
359364
; unless "declare(encoding=...)" directive appears at the top of the script.
360365
; Only affects if zend.multibyte is set.
361-
; Default: ""
362366
;zend.script_encoding =
363367

364-
; Allows to include or exclude arguments from stack traces generated for exceptions
365-
; Default: Off
368+
; Allows to include or exclude arguments from stack traces generated for exceptions.
369+
; Default Value: Off
370+
; Development Value: Off
371+
; Production Value: On
366372
zend.exception_ignore_args = Off
367373

368374
;;;;;;;;;;;;;;;;;
@@ -1644,9 +1650,8 @@ zend.assertions = 1
16441650
; http://php.net/mbstring.substitute-character
16451651
;mbstring.substitute_character = none
16461652

1647-
; enable strict encoding detection.
1648-
; Default: Off
1649-
;mbstring.strict_detection = On
1653+
; Enable strict encoding detection.
1654+
;mbstring.strict_detection = Off
16501655

16511656
; This directive specifies the regex pattern of content types for which mb_output_handler()
16521657
; is activated.
@@ -1655,12 +1660,10 @@ zend.assertions = 1
16551660

16561661
; This directive specifies maximum stack depth for mbstring regular expressions. It is similar
16571662
; to the pcre.recursion_limit for PCRE.
1658-
; Default: 100000
16591663
;mbstring.regex_stack_limit=100000
16601664

16611665
; This directive specifies maximum retry count for mbstring regular expressions. It is similar
16621666
; to the pcre.backtrack_limit for PCRE.
1663-
; Default: 1000000
16641667
;mbstring.regex_retry_limit=1000000
16651668

16661669
[gd]

php.ini-production

+11-8
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
@@ -153,6 +154,11 @@
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+
156162
;;;;;;;;;;;;;;;;;;;;
157163
; php.ini Options ;
158164
;;;;;;;;;;;;;;;;;;;;
@@ -352,19 +358,19 @@ zend.enable_gc = On
352358
; If enabled, scripts may be written in encodings that are incompatible with
353359
; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such
354360
; encodings. To use this feature, mbstring extension must be enabled.
355-
; Default: Off
356361
;zend.multibyte = Off
357362

358363
; Allows to set the default encoding for the scripts. This value will be used
359364
; unless "declare(encoding=...)" directive appears at the top of the script.
360365
; Only affects if zend.multibyte is set.
361-
; Default: ""
362366
;zend.script_encoding =
363367

364368
; Allows to include or exclude arguments from stack traces generated for exceptions
365-
; Default: Off
366369
; In production, it is recommended to turn this setting on to prohibit the output
367370
; of sensitive information in stack traces
371+
; Default Value: Off
372+
; Development Value: Off
373+
; Production Value: On
368374
zend.exception_ignore_args = On
369375

370376
;;;;;;;;;;;;;;;;;
@@ -1646,9 +1652,8 @@ zend.assertions = -1
16461652
; http://php.net/mbstring.substitute-character
16471653
;mbstring.substitute_character = none
16481654

1649-
; enable strict encoding detection.
1650-
; Default: Off
1651-
;mbstring.strict_detection = On
1655+
; Enable strict encoding detection.
1656+
;mbstring.strict_detection = Off
16521657

16531658
; This directive specifies the regex pattern of content types for which mb_output_handler()
16541659
; is activated.
@@ -1657,12 +1662,10 @@ zend.assertions = -1
16571662

16581663
; This directive specifies maximum stack depth for mbstring regular expressions. It is similar
16591664
; to the pcre.recursion_limit for PCRE.
1660-
; Default: 100000
16611665
;mbstring.regex_stack_limit=100000
16621666

16631667
; This directive specifies maximum retry count for mbstring regular expressions. It is similar
16641668
; to the pcre.backtrack_limit for PCRE.
1665-
; Default: 1000000
16661669
;mbstring.regex_retry_limit=1000000
16671670

16681671
[gd]

0 commit comments

Comments
 (0)