[wp-trac] [WordPress Trac] #22952: WP_HTTP can cause PHP Warnings during attempted decompression

WordPress Trac noreply at wordpress.org
Wed Nov 19 11:05:41 UTC 2014


#22952: WP_HTTP can cause PHP Warnings during attempted decompression
-------------------------------------+-----------------------------
 Reporter:  dd32                     |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  HTTP API                 |     Version:  3.3
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-----------------------------

Comment (by dd32):

 [attachment:22952.3.diff 22952.3.diff] is an updated patch of what's
 running on WordPress.com after I attempted to fix most of the remote
 fetching failures we saw (Pingbacks, etc). The code is pretty crazy, but I
 haven't heard of any false failures.

 The basic rule is that there's so many servers out there compressing data
 in so many different ways, using so many different standards, and all
 calling it either deflate or gzip that it's not funny..

 I never pushed these changes back to core primarily as I never 100%
 finished tracking down examples of failures (I'd love to unit test it, but
 need a bunch of obscurely compressed pages that we can use), but secondly
 because the code looks so crazy that I question if we should be doing so
 much work here in PHP.. :)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/22952#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list