[wp-trac] [WordPress Trac] #18525: zlib.output_compression "on" in server conflicts with autoupdate

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 5 01:35:51 UTC 2011


#18525: zlib.output_compression "on" in server conflicts with autoupdate
------------------------------------+------------------------------
 Reporter:  avidre                  |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  General                 |     Version:  3.2.1
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------------------

Comment (by dd32):

 Any reason for ob_get_flush() over ob_end_flush()?

 Despite what I thought, it appears that `ini_set('zlib.output_handler',
 '');` does indeed do what the packet says, and it can be called at any
 point of the pageload too.

 as for $disable_compression, we should be able to process that once per
 page load, if the function's called, we want to flush now, no need for it
 to be a variable.. If we use a static variable within the function, we can
 make sure that we only do that extra processing once per pageload too.

 Do you have a document/reference which explains the 4k null bytes? Given
 that'll be output during the middle of the pageload, I'm not entirely sure
 what that achieves? or is it to just push it over the block boundary so a
 chunk is sent to the browser rather than waiting for the next?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18525#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list