svn: /phpdoc/en/trunk/reference/zlib/functions/ gzencode.xml
| From: | Adam Harvey | Date: | Mon, 12 Nov 2012 02:33:53 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/zlib/functions/ gzencode.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-10685@lists.php.net to get a copy of this message | ||
aharvey Mon, 12 Nov 2012 02:33:53 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=328313
Log:
Update gzencode() documentation for the new FORCE_DEFLATE behaviour in PHP 5.4.
Fixes doc bug #47178 (Missing gzip headers in gzencode() output).
Bug: https://bugs.php.net/47178 (Open) Missing gzip headers
in gzencode() output
Changed paths:
U phpdoc/en/trunk/reference/zlib/functions/gzencode.xml
Modified: phpdoc/en/trunk/reference/zlib/functions/gzencode.xml
===================================================================
--- phpdoc/en/trunk/reference/zlib/functions/gzencode.xml 2012-11-12 02:14:56 UTC (rev 328312)
+++ phpdoc/en/trunk/reference/zlib/functions/gzencode.xml 2012-11-12 02:33:53 UTC (rev 328313)
@@ -56,10 +56,15 @@
or <constant>FORCE_DEFLATE</constant>.
</para>
<para>
- If you use <constant>FORCE_DEFLATE</constant>, you get a standard zlib
- deflated string (inclusive zlib headers) after the gzip file header but
- without the trailing crc32 checksum.
+ Prior to PHP 5.4.0, using <constant>FORCE_DEFLATE</constant> results in
+ a standard zlib deflated string (inclusive zlib headers) after a gzip
+ file header but without the trailing crc32 checksum.
</para>
+ <para>
+ In PHP 5.4.0 and later, <constant>FORCE_DEFLATE</constant> generates
+ RFC 1950 compliant output, consisting of a zlib header, the deflated
+ data, and an Adler checksum.
+ </para>
</listitem>
</varlistentry>
</variablelist>
@@ -86,6 +91,13 @@
</thead>
<tbody>
<row>
+ <entry>5.4.0</entry>
+ <entry>
+ <constant>FORCE_DEFLATE</constant> now generates RFC 1950 compliant
+ output.
+ </entry>
+ </row>
+ <row>
<entry>4.2.0</entry>
<entry>
The <parameter>encoding_mode</parameter> parameter was added
@@ -128,6 +140,11 @@
<member><function>gzinflate</function></member>
<member><function>gzuncompress</function></member>
<member><function>gzcompress</function></member>
+ <member>
+ <link xlink:href="&url.rfc;1950">
+ ZLIB Compressed Data Format Specification (RFC 1950)
+ </link>
+ </member>
</simplelist>
</para>
</refsect1>