svn: /phpdoc/ja/trunk/reference/zlib/functions/ deflate_init.xml

[email protected] (Yoshinari Takaoka)
Newsgroups php.doc.ja
Message-ID <[email protected]>
mumumu                                   Fri, 20 Nov 2020 20:07:32 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=351461

Log:
Fix #78527: zlib deflate bug with windowBits == 8
Fix #75807: deflate_init fails with window bits set to 8

Bugs: https://bugs.php.net/78527 (error getting bug information)
      https://bugs.php.net/75807 (error getting bug information)
      
Changed paths:
    U   phpdoc/ja/trunk/reference/zlib/functions/deflate_init.xml

Modified: phpdoc/ja/trunk/reference/zlib/functions/deflate_init.xml
===================================================================
--- phpdoc/ja/trunk/reference/zlib/functions/deflate_init.xml	2020-11-20 19:59:50 UTC (rev 351460)
+++ phpdoc/ja/trunk/reference/zlib/functions/deflate_init.xml	2020-11-20 20:07:32 UTC (rev 351461)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 351135 Maintainer: mumumu Status: ready -->
+<!-- EN-Revision: 351455 Maintainer: mumumu Status: ready -->

 <refentry xml:id="function.deflate-init" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  <refnamediv>
@@ -72,8 +72,13 @@
         <term><varname>window</varname></term>
         <listitem>
          <para>
-          8 .. 15 までの zlib の window サイズ(対数)。
+          <literal>8</literal> .. <literal>15</literal> までの zlib の window サイズ(対数)。
           デフォルトは 15 です。
+          zlib 1.2.8 以降では、
+          window サイズ <literal>8</literal> が
+          <constant>ZLIB_ENCODING_RAW</constant> や <constant>ZLIB_ENCODING_GZIP</constant>
+          と一緒に指定された場合、この関数は失敗し、警告が発生します。
+          同時に、zlib は window サイズを <literal>8</literal> から <literal>9</literal> に変更します。
          </para>
         </listitem>
        </varlistentry>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.