WordPress.org

Make WordPress Core

Changeset 18806


Ignore:
Timestamp:
09/29/2011 02:10:35 AM (7 years ago)
Author:
dd32
Message:

Document the Magic numbering in WP_Http_Encoding::compatible_gzinflate(). Fixes #18273

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-http.php

    r18805 r18806  
    16261626     *
    16271627     * Certain Servers will return deflated data with headers which PHP's gziniflate()
    1628      * function cannot handle out of the box. The following function lifted from
    1629      * http://au2.php.net/manual/en/function.gzinflate.php#77336 will attempt to deflate
    1630      * the various return forms used.
     1628     * function cannot handle out of the box. The following function has been created from
     1629     * various snippets on the gzinflate() PHP documentation.
     1630     *
     1631     * Warning: Magic numbers within. Due to the potential different formats that the compressed
     1632     * data may be returned in, some "magic offsets" are needed to ensure proper decompression
     1633     * takes place. For a simple progmatic way to determine the magic offset in use, see:
     1634     * http://core.trac.wordpress.org/ticket/18273
    16311635     *
    16321636     * @since 2.8.1
     1637     * @link http://core.trac.wordpress.org/ticket/18273
     1638     * @link http://au2.php.net/manual/en/function.gzinflate.php#70875
    16331639     * @link http://au2.php.net/manual/en/function.gzinflate.php#77336
    16341640     *
Note: See TracChangeset for help on using the changeset viewer.