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
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
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
366379zend.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
480501display_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
523542report_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
@@ -921,6 +932,7 @@ default_socket_timeout = 60
921932; extension=exif ; Must be after mbstring as it depends on it
922933; extension=mysqli
923934; extension=oci8_12c ; Use with Oracle Database 12c Instant Client
935+ ; extension=oci8_19 ; Use with Oracle Database 19 Instant Client
924936; extension=odbc
925937; extension=openssl
926938; extension=pdo_firebird
@@ -941,9 +953,10 @@ default_socket_timeout = 60
941953; extension=sodium
942954; extension=sqlite3
943955; extension=tidy
944- ;extension=xmlrpc
945956; extension=xsl
946957
958+ ; zend_extension=opcache
959+
947960; ;;;;;;;;;;;;;;;;;;
948961; Module Settings ;
949962; ;;;;;;;;;;;;;;;;;;
@@ -964,10 +977,10 @@ cli_server.color = On
964977; date.default_longitude = 35.2333
965978
966979; http://php.net/date.sunrise-zenith
967- ;date.sunrise_zenith = 90.583333
980+ ; date.sunrise_zenith = 90.833333
968981
969982; http://php.net/date.sunset-zenith
970- ;date.sunset_zenith = 90.583333
983+ ; date.sunset_zenith = 90.833333
971984
972985[filter]
973986; http://php.net/filter.default
@@ -1044,8 +1057,6 @@ cli_server.color = On
10441057; http://php.net/pdo-odbc.connection-pooling
10451058; pdo_odbc.connection_pooling=strict
10461059
1047- ;pdo_odbc.db2_instance_name
1048-
10491060[Pdo_mysql]
10501061; Default socket name for local MySQL connects. If empty, uses the built-in
10511062; MySQL defaults.
@@ -1581,13 +1592,6 @@ zend.assertions = 1
15811592; http://php.net/assert.callback
15821593; assert.callback = 0
15831594
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-
15911595[COM]
15921596; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
15931597; http://php.net/com.typelib-file
@@ -1613,6 +1617,10 @@ zend.assertions = 1
16131617; Default: system ANSI code page
16141618; com.code_page=
16151619
1620+ ; The version of the .NET framework to use. The value of the setting are the first three parts
1621+ ; of the framework's version number, separated by dots, and prefixed with "v", e.g. "v4.0.30319".
1622+ ; com.dotnet_version=
1623+
16161624[mbstring]
16171625; language for internal character representation.
16181626; This affects mb_send_mail() and mbstring.detect_order.
@@ -1630,7 +1638,7 @@ zend.assertions = 1
16301638; http input encoding.
16311639; mbstring.encoding_translation = On is needed to use this setting.
16321640; If empty, default_charset or input_encoding or mbstring.input is used.
1633- ; The precedence is: default_charset < input_encoding < mbsting .http_input
1641+ ; The precedence is: default_charset < input_encoding < mbstring .http_input
16341642; http://php.net/mbstring.http-input
16351643; mbstring.http_input =
16361644
@@ -1662,20 +1670,8 @@ zend.assertions = 1
16621670; http://php.net/mbstring.substitute-character
16631671; mbstring.substitute_character = none
16641672
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
1673+ ; Enable strict encoding detection.
1674+ ; mbstring.strict_detection = Off
16791675
16801676; This directive specifies the regex pattern of content types for which mb_output_handler()
16811677; is activated.
@@ -1684,12 +1680,10 @@ zend.assertions = 1
16841680
16851681; This directive specifies maximum stack depth for mbstring regular expressions. It is similar
16861682; to the pcre.recursion_limit for PCRE.
1687- ; Default: 100000
16881683; mbstring.regex_stack_limit=100000
16891684
16901685; This directive specifies maximum retry count for mbstring regular expressions. It is similar
16911686; to the pcre.backtrack_limit for PCRE.
1692- ; Default: 1000000
16931687; mbstring.regex_retry_limit=1000000
16941688
16951689[gd]
@@ -1804,6 +1798,11 @@ ldap.max_links = -1
18041798; size of the optimized code.
18051799; opcache.save_comments=1
18061800
1801+ ; If enabled, compilation warnings (including notices and deprecations) will
1802+ ; be recorded and replayed each time a file is included. Otherwise, compilation
1803+ ; warnings will only be emitted when the file is first cached.
1804+ ; opcache.record_warnings=0
1805+
18071806; Allow file existence override (file_exists, etc.) performance feature.
18081807; opcache.enable_file_override=0
18091808
0 commit comments