jimw            Mon Jan 22 18:29:41 2001 EDT

  Modified files:              
    /phpdoc/en/functions        zlib.xml 
  Log:
  clear up some gzip/deflate confusion (of course, gzencode is undocumented, which 
leaves a bit of a hole)
  
Index: phpdoc/en/functions/zlib.xml
diff -u phpdoc/en/functions/zlib.xml:1.9 phpdoc/en/functions/zlib.xml:1.10
--- phpdoc/en/functions/zlib.xml:1.9    Fri Oct 13 05:59:27 2000
+++ phpdoc/en/functions/zlib.xml        Mon Jan 22 18:29:41 2001
@@ -609,7 +609,7 @@
   <refentry id="function.gzcompress">
    <refnamediv>
     <refname>gzcompress</refname>
-    <refpurpose>Gz-compress a string</refpurpose>
+    <refpurpose>Deflate a string</refpurpose>
    </refnamediv>
    <refsect1>
     <title>Description</title>
@@ -623,11 +623,19 @@
      </funcprototype>
     </funcsynopsis>
     <para>
-     This function returns a gzip-compressed version of the input
-     <parameter>data</parameter> or false on errors. The optional
-     parameter <parameter>level</parameter> can be given as 0 for no
+     This function returns a compressed version of the input
+     <parameter>data</parameter> using the deflate algorithm,
+     or false if an error is encountered. The optional parameter
+     <parameter>level</parameter> can be given as 0 for no
      compression up to 9 for maximum compression.
     </para>
+    <note>
+     <para>
+      This is <emphasis>not</emphasis> the same as gzip compression,
+      which includes some header data. See <function>gzencode</function>
+      for gzip compression.
+     </para>
+    </note>
     <para>
      See also <function>gzuncompress</function>.
     </para>
@@ -637,7 +645,7 @@
   <refentry id="function.gzuncompress">
    <refnamediv>
     <refname>gzuncompress</refname>
-    <refpurpose>Uncompress a gz-compressed string</refpurpose>
+    <refpurpose>Uncompress a deflated string</refpurpose>
    </refnamediv>
    <refsect1>
     <title>Description</title>
@@ -652,9 +660,9 @@
     </funcsynopsis>
     <para>                     
      This function takes <parameter>data</parameter> compressed by
-     <function>gzcompress</function> and returns the orignial
+     <function>gzcompress</function> and returns the original
      uncompressed data or false on error.  The function will return an
-     error if the uncompressed data is more than 256 times the lenght
+     error if the uncompressed data is more than 256 times the length
      of the compressed input <parameter>data</parameter> or more than
      the optional parameter <parameter>length</parameter>.
     </para>


Reply via email to