Skip to content

Commit afedca1

Browse files
committed
Enable output buffering in the php.ini-recommended
1 parent 35de326 commit afedca1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

php.ini-recommended

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@
4343
; but can be configured in several ways). Along with setting display_errors to off,
4444
; this setup gives you the ability to fully understand what may have gone wrong,
4545
; without exposing any sensitive information to remote users.
46+
; - output_buffering = 4096 [Performance]
47+
; Set a 4KB output buffer. Enabling output buffering typically results in less
48+
; writes, and sometimes less packets sent on the wire, which can often lead to
49+
; better performance. The gain this directive actually yields greatly depends
50+
; on which Web server you're working with, and what kind of scripts you're using.
4651
; - register_argc_argv = Off [Performance]
4752
; Disables registration of the somewhat redundant $argv and $argc global
4853
; variables.
@@ -85,7 +90,7 @@ y2k_compliance = Off
8590
; setting this directive to On. If you wish to limit the size of the buffer
8691
; to a certain size - you can use a maximum number of bytes instead of 'On', as
8792
; a value for this directive (e.g., output_buffering=4096).
88-
output_buffering = Off
93+
output_buffering = 4096
8994

9095
; You can redirect all of the output of your scripts to a function. For
9196
; example, if you set output_handler to "ob_gzhandler", output will be

0 commit comments

Comments
 (0)