Skip to content

Commit 7b54369

Browse files
committed
Updated php.ini file for development
1 parent 5e6dafb commit 7b54369

File tree

22 files changed

+8819
-1017
lines changed

22 files changed

+8819
-1017
lines changed

php5.5/cli/conf/php.ini

Lines changed: 58 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
; Windows directory (usually C:\windows)
1919
; See the PHP docs for more specific information.
2020
; http://php.net/configuration.file
21-
;
21+
2222
; The syntax of the file is extremely simple. Whitespace and lines
2323
; beginning with a semicolon are silently ignored (as you probably guessed).
2424
; Section headers (e.g. [Foo]) are also silently ignored, even though
@@ -88,7 +88,6 @@
8888
;;;;;;;;;;;;;;;;;;;
8989
; Quick Reference ;
9090
;;;;;;;;;;;;;;;;;;;
91-
9291
; The following are all the settings which are different in either the production
9392
; or development versions of the INIs with respect to PHP's default behavior.
9493
; Please see the actual settings later in the document for more details as to why
@@ -100,12 +99,12 @@
10099
; Production Value: Off
101100

102101
; display_startup_errors
103-
; Default Value: On
102+
; Default Value: Off
104103
; Development Value: On
105104
; Production Value: Off
106105

107106
; error_reporting
108-
; Default Value: E_ALL
107+
; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
109108
; Development Value: E_ALL
110109
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
111110

@@ -154,16 +153,6 @@
154153
; Development Value: "GPCS"
155154
; Production Value: "GPCS"
156155

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-
167156
;;;;;;;;;;;;;;;;;;;;
168157
; php.ini Options ;
169158
;;;;;;;;;;;;;;;;;;;;
@@ -267,7 +256,7 @@ output_buffering = 4096
267256
; Note: You need to use zlib.output_handler instead of the standard
268257
; output_handler, or otherwise the output will be corrupted.
269258
; http://php.net/zlib.output-compression
270-
zlib.output_compression = Off
259+
zlib.output_compression = On
271260

272261
; http://php.net/zlib.output-compression-level
273262
;zlib.output_compression_level = -1
@@ -363,29 +352,19 @@ zend.enable_gc = On
363352
; If enabled, scripts may be written in encodings that are incompatible with
364353
; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such
365354
; encodings. To use this feature, mbstring extension must be enabled.
355+
; Default: Off
366356
;zend.multibyte = Off
367357

368358
; Allows to set the default encoding for the scripts. This value will be used
369359
; unless "declare(encoding=...)" directive appears at the top of the script.
370360
; Only affects if zend.multibyte is set.
361+
; Default: ""
371362
;zend.script_encoding =
372363

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
364+
; Allows to include or exclude arguments from stack traces generated for exceptions
365+
; Default: Off
379366
zend.exception_ignore_args = Off
380367

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-
389368
;;;;;;;;;;;;;;;;;
390369
; Miscellaneous ;
391370
;;;;;;;;;;;;;;;;;
@@ -404,7 +383,7 @@ expose_php = On
404383
; Maximum execution time of each script, in seconds
405384
; http://php.net/max-execution-time
406385
; Note: This directive is hardcoded to 0 for the CLI SAPI
407-
max_execution_time = 30
386+
max_execution_time = 1800
408387

409388
; Maximum amount of time each script may spend parsing request data. It's a good
410389
; idea to limit this time on productions servers in order to eliminate unexpectedly
@@ -414,7 +393,7 @@ max_execution_time = 30
414393
; Development Value: 60 (60 seconds)
415394
; Production Value: 60 (60 seconds)
416395
; http://php.net/max-input-time
417-
max_input_time = 60
396+
max_input_time = 600
418397

419398
; Maximum input variable nesting level
420399
; http://php.net/max-input-nesting-level
@@ -425,7 +404,7 @@ max_input_time = 60
425404

426405
; Maximum amount of memory a script may consume
427406
; http://php.net/memory-limit
428-
memory_limit = 128M
407+
memory_limit = -1
429408

430409
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
431410
; Error handling and logging ;
@@ -477,7 +456,7 @@ memory_limit = 128M
477456
; E_ALL & ~E_NOTICE (Show all errors, except for notices)
478457
; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding standards warnings.)
479458
; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors)
480-
; Default Value: E_ALL
459+
; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
481460
; Development Value: E_ALL
482461
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
483462
; http://php.net/error-reporting
@@ -501,9 +480,11 @@ error_reporting = E_ALL
501480
display_errors = On
502481

503482
; The display of errors which occur during PHP's startup sequence are handled
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
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
507488
; Development Value: On
508489
; Production Value: Off
509490
; http://php.net/display-startup-errors
@@ -541,9 +522,17 @@ ignore_repeated_source = Off
541522
; http://php.net/report-memleaks
542523
report_memleaks = On
543524

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

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+
547536
; Turn off normal error reporting and emit XML-RPC error XML
548537
; http://php.net/xmlrpc-errors
549538
;xmlrpc_errors = 0
@@ -698,7 +687,7 @@ auto_globals_jit = On
698687
; Its value may be 0 to disable the limit. It is ignored if POST data reading
699688
; is disabled through enable_post_data_reading.
700689
; http://php.net/post-max-size
701-
post_max_size = 8M
690+
post_max_size = 300M
702691

703692
; Automatically add files before PHP document.
704693
; http://php.net/auto-prepend-file
@@ -850,7 +839,7 @@ file_uploads = On
850839

851840
; Maximum allowed size for uploaded files.
852841
; http://php.net/upload-max-filesize
853-
upload_max_filesize = 2M
842+
upload_max_filesize = 256M
854843

855844
; Maximum number of files that can be uploaded via a single request
856845
max_file_uploads = 20
@@ -922,7 +911,7 @@ default_socket_timeout = 60
922911
;extension=ffi
923912
;extension=ftp
924913
;extension=fileinfo
925-
;extension=gd
914+
;extension=gd2
926915
;extension=gettext
927916
;extension=gmp
928917
;extension=intl
@@ -932,7 +921,6 @@ default_socket_timeout = 60
932921
;extension=exif ; Must be after mbstring as it depends on it
933922
;extension=mysqli
934923
;extension=oci8_12c ; Use with Oracle Database 12c Instant Client
935-
;extension=oci8_19 ; Use with Oracle Database 19 Instant Client
936924
;extension=odbc
937925
;extension=openssl
938926
;extension=pdo_firebird
@@ -953,10 +941,9 @@ default_socket_timeout = 60
953941
;extension=sodium
954942
;extension=sqlite3
955943
;extension=tidy
944+
;extension=xmlrpc
956945
;extension=xsl
957946

958-
;zend_extension=opcache
959-
960947
;;;;;;;;;;;;;;;;;;;
961948
; Module Settings ;
962949
;;;;;;;;;;;;;;;;;;;
@@ -977,10 +964,10 @@ cli_server.color = On
977964
;date.default_longitude = 35.2333
978965

979966
; http://php.net/date.sunrise-zenith
980-
;date.sunrise_zenith = 90.833333
967+
;date.sunrise_zenith = 90.583333
981968

982969
; http://php.net/date.sunset-zenith
983-
;date.sunset_zenith = 90.833333
970+
;date.sunset_zenith = 90.583333
984971

985972
[filter]
986973
; http://php.net/filter.default
@@ -1057,6 +1044,8 @@ cli_server.color = On
10571044
; http://php.net/pdo-odbc.connection-pooling
10581045
;pdo_odbc.connection_pooling=strict
10591046

1047+
;pdo_odbc.db2_instance_name
1048+
10601049
[Pdo_mysql]
10611050
; Default socket name for local MySQL connects. If empty, uses the built-in
10621051
; MySQL defaults.
@@ -1592,6 +1581,13 @@ zend.assertions = 1
15921581
; http://php.net/assert.callback
15931582
;assert.callback = 0
15941583

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+
15951591
[COM]
15961592
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
15971593
; http://php.net/com.typelib-file
@@ -1617,10 +1613,6 @@ zend.assertions = 1
16171613
; Default: system ANSI code page
16181614
;com.code_page=
16191615

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-
16241616
[mbstring]
16251617
; language for internal character representation.
16261618
; This affects mb_send_mail() and mbstring.detect_order.
@@ -1638,7 +1630,7 @@ zend.assertions = 1
16381630
; http input encoding.
16391631
; mbstring.encoding_translation = On is needed to use this setting.
16401632
; If empty, default_charset or input_encoding or mbstring.input is used.
1641-
; The precedence is: default_charset < input_encoding < mbstring.http_input
1633+
; The precedence is: default_charset < input_encoding < mbsting.http_input
16421634
; http://php.net/mbstring.http-input
16431635
;mbstring.http_input =
16441636

@@ -1670,8 +1662,20 @@ zend.assertions = 1
16701662
; http://php.net/mbstring.substitute-character
16711663
;mbstring.substitute_character = none
16721664

1673-
; Enable strict encoding detection.
1674-
;mbstring.strict_detection = Off
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
16751679

16761680
; This directive specifies the regex pattern of content types for which mb_output_handler()
16771681
; is activated.
@@ -1680,10 +1684,12 @@ zend.assertions = 1
16801684

16811685
; This directive specifies maximum stack depth for mbstring regular expressions. It is similar
16821686
; to the pcre.recursion_limit for PCRE.
1687+
; Default: 100000
16831688
;mbstring.regex_stack_limit=100000
16841689

16851690
; This directive specifies maximum retry count for mbstring regular expressions. It is similar
16861691
; to the pcre.backtrack_limit for PCRE.
1692+
; Default: 1000000
16871693
;mbstring.regex_retry_limit=1000000
16881694

16891695
[gd]
@@ -1798,11 +1804,6 @@ ldap.max_links = -1
17981804
; size of the optimized code.
17991805
;opcache.save_comments=1
18001806

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-
18061807
; Allow file existence override (file_exists, etc.) performance feature.
18071808
;opcache.enable_file_override=0
18081809

0 commit comments

Comments
 (0)