88
88
; ;;;;;;;;;;;;;;;;;;
89
89
; Quick Reference ;
90
90
; ;;;;;;;;;;;;;;;;;;
91
+
91
92
; The following are all the settings which are different in either the production
92
93
; or development versions of the INIs with respect to PHP's default behavior.
93
94
; Please see the actual settings later in the document for more details as to why
99
100
; Production Value: Off
100
101
101
102
; display_startup_errors
102
- ; Default Value: Off
103
+ ; Default Value: On
103
104
; Development Value: On
104
105
; Production Value: Off
105
106
106
107
; error_reporting
107
- ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
108
+ ; Default Value: E_ALL
108
109
; Development Value: E_ALL
109
110
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
110
111
153
154
; Development Value: "GPCS"
154
155
; Production Value: "GPCS"
155
156
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
+
156
167
; ;;;;;;;;;;;;;;;;;;;
157
168
; php.ini Options ;
158
169
; ;;;;;;;;;;;;;;;;;;;
@@ -352,19 +363,29 @@ zend.enable_gc = On
352
363
; If enabled, scripts may be written in encodings that are incompatible with
353
364
; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such
354
365
; encodings. To use this feature, mbstring extension must be enabled.
355
- ; Default: Off
356
366
; zend.multibyte = Off
357
367
358
368
; Allows to set the default encoding for the scripts. This value will be used
359
369
; unless "declare(encoding=...)" directive appears at the top of the script.
360
370
; Only affects if zend.multibyte is set.
361
- ; Default: ""
362
371
; zend.script_encoding =
363
372
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
366
379
zend.exception_ignore_args = Off
367
380
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
+
368
389
; ;;;;;;;;;;;;;;;;
369
390
; Miscellaneous ;
370
391
; ;;;;;;;;;;;;;;;;
@@ -456,7 +477,7 @@ memory_limit = 128M
456
477
; E_ALL & ~E_NOTICE (Show all errors, except for notices)
457
478
; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding standards warnings.)
458
479
; 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
460
481
; Development Value: E_ALL
461
482
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
462
483
; http://php.net/error-reporting
@@ -480,11 +501,9 @@ error_reporting = E_ALL
480
501
display_errors = On
481
502
482
503
; 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
488
507
; Development Value: On
489
508
; Production Value: Off
490
509
; http://php.net/display-startup-errors
@@ -522,17 +541,9 @@ ignore_repeated_source = Off
522
541
; http://php.net/report-memleaks
523
542
report_memleaks = On
524
543
525
- ; This setting is on by default.
544
+ ; This setting is off by default.
526
545
; report_zend_debug = 0
527
546
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
-
536
547
; Turn off normal error reporting and emit XML-RPC error XML
537
548
; http://php.net/xmlrpc-errors
538
549
; xmlrpc_errors = 0
@@ -911,7 +922,7 @@ default_socket_timeout = 60
911
922
; extension=ffi
912
923
; extension=ftp
913
924
; extension=fileinfo
914
- ; extension=gd2
925
+ ; extension=gd
915
926
; extension=gettext
916
927
; extension=gmp
917
928
; extension=intl
@@ -941,9 +952,10 @@ default_socket_timeout = 60
941
952
; extension=sodium
942
953
; extension=sqlite3
943
954
; extension=tidy
944
- ; extension=xmlrpc
945
955
; extension=xsl
946
956
957
+ ; zend_extension=opcache
958
+
947
959
; ;;;;;;;;;;;;;;;;;;
948
960
; Module Settings ;
949
961
; ;;;;;;;;;;;;;;;;;;
@@ -964,10 +976,10 @@ cli_server.color = On
964
976
; date.default_longitude = 35.2333
965
977
966
978
; http://php.net/date.sunrise-zenith
967
- ; date.sunrise_zenith = 90.583333
979
+ ; date.sunrise_zenith = 90.833333
968
980
969
981
; http://php.net/date.sunset-zenith
970
- ; date.sunset_zenith = 90.583333
982
+ ; date.sunset_zenith = 90.833333
971
983
972
984
[filter]
973
985
; http://php.net/filter.default
@@ -1044,8 +1056,6 @@ cli_server.color = On
1044
1056
; http://php.net/pdo-odbc.connection-pooling
1045
1057
; pdo_odbc.connection_pooling=strict
1046
1058
1047
- ; pdo_odbc.db2_instance_name
1048
-
1049
1059
[Pdo_mysql]
1050
1060
; Default socket name for local MySQL connects. If empty, uses the built-in
1051
1061
; MySQL defaults.
@@ -1581,13 +1591,6 @@ zend.assertions = 1
1581
1591
; http://php.net/assert.callback
1582
1592
; assert.callback = 0
1583
1593
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
-
1591
1594
[COM]
1592
1595
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
1593
1596
; http://php.net/com.typelib-file
@@ -1613,6 +1616,10 @@ zend.assertions = 1
1613
1616
; Default: system ANSI code page
1614
1617
; com.code_page=
1615
1618
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
+
1616
1623
[mbstring]
1617
1624
; language for internal character representation.
1618
1625
; This affects mb_send_mail() and mbstring.detect_order.
@@ -1662,20 +1669,8 @@ zend.assertions = 1
1662
1669
; http://php.net/mbstring.substitute-character
1663
1670
; mbstring.substitute_character = none
1664
1671
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
1679
1674
1680
1675
; This directive specifies the regex pattern of content types for which mb_output_handler()
1681
1676
; is activated.
@@ -1684,12 +1679,10 @@ zend.assertions = 1
1684
1679
1685
1680
; This directive specifies maximum stack depth for mbstring regular expressions. It is similar
1686
1681
; to the pcre.recursion_limit for PCRE.
1687
- ; Default: 100000
1688
1682
; mbstring.regex_stack_limit=100000
1689
1683
1690
1684
; This directive specifies maximum retry count for mbstring regular expressions. It is similar
1691
1685
; to the pcre.backtrack_limit for PCRE.
1692
- ; Default: 1000000
1693
1686
; mbstring.regex_retry_limit=1000000
1694
1687
1695
1688
[gd]
@@ -1804,6 +1797,11 @@ ldap.max_links = -1
1804
1797
; size of the optimized code.
1805
1798
; opcache.save_comments=1
1806
1799
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
+
1807
1805
; Allow file existence override (file_exists, etc.) performance feature.
1808
1806
; opcache.enable_file_override=0
1809
1807
0 commit comments