[PHP-DOC] cvs: phpdoc /en/functions zlib.xml

2002-03-23 Thread Derick Rethans

derick  Sat Mar 23 07:18:16 2002 EDT

  Modified files:  
/phpdoc/en/functionszlib.xml 
  Log:
  - Fix wrapper issue
  
  
Index: phpdoc/en/functions/zlib.xml
diff -u phpdoc/en/functions/zlib.xml:1.25 phpdoc/en/functions/zlib.xml:1.26
--- phpdoc/en/functions/zlib.xml:1.25   Fri Mar 22 22:07:10 2002
+++ phpdoc/en/functions/zlib.xmlSat Mar 23 07:18:15 2002
 -1,5 +1,5 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.25 $ --
+!-- $Revision: 1.26 $ --
  reference id=ref.zlib
   titleZlib Compression Functions/title
   titleabbrevZlib/titleabbrev
 -23,6 +23,10 
 transparently using the normal f*() file access functions if you
 prepend the filename or path with a 'zlib:' prefix when calling
 functionfopen/function.
+   /para
+   para
+In version 4.3.0, this special prefix has been changed to 'zlib://'
+to prevent ambiguities with filenames containing ':'.
/para
para
 This feature requires a C runtime library that provides the





[PHP-DOC] cvs: phpdoc /en/functions zlib.xml

2002-03-22 Thread Andrew Lindeman

alindeman   Fri Mar 22 22:07:10 2002 EDT

  Modified files:  
/phpdoc/en/functionszlib.xml 
  Log:
  The Current CVS version is not 4.0.4-dev
  
  
Index: phpdoc/en/functions/zlib.xml
diff -u phpdoc/en/functions/zlib.xml:1.24 phpdoc/en/functions/zlib.xml:1.25
--- phpdoc/en/functions/zlib.xml:1.24   Wed Mar 13 17:35:05 2002
+++ phpdoc/en/functions/zlib.xmlFri Mar 22 22:07:10 2002
 -1,5 +1,5 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.24 $ --
+!-- $Revision: 1.25 $ --
  reference id=ref.zlib
   titleZlib Compression Functions/title
   titleabbrevZlib/titleabbrev
 -18,11 +18,11 
   /para
   note
para
-The current CVS version 4.0.4-dev introduces a fopen-wrapper
-for .gz-files, so that you can use a special 'zlib:' URL to
-access compressed files transparently using the normal 
-f*() file access functions if you prepend the filename or path
-with a 'zlib:' prefix when calling functionfopen/function.
+Version 4.0.4 introduces a fopen-wrapper for .gz-files, so that
+you can use a special 'zlib:' URL to access compressed files
+transparently using the normal f*() file access functions if you
+prepend the filename or path with a 'zlib:' prefix when calling
+functionfopen/function.
/para
para
 This feature requires a C runtime library that provides the





[PHP-DOC] cvs: phpdoc /en/functions zlib.xml

2002-03-13 Thread Stefan Roehrich

sr  Wed Mar 13 17:35:05 2002 EDT

  Modified files:  
/phpdoc/en/functionszlib.xml 
  Log:
  Added description of optional encoding_mode to gzencode().
  
  
  
Index: phpdoc/en/functions/zlib.xml
diff -u phpdoc/en/functions/zlib.xml:1.23 phpdoc/en/functions/zlib.xml:1.24
--- phpdoc/en/functions/zlib.xml:1.23   Tue Feb  5 13:23:12 2002
+++ phpdoc/en/functions/zlib.xmlWed Mar 13 17:35:05 2002
 -1,5 +1,5 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.23 $ --
+!-- $Revision: 1.24 $ --
  reference id=ref.zlib
   titleZlib Compression Functions/title
   titleabbrevZlib/titleabbrev
 -715,15 +715,32 
   typestring/typemethodnamegzencode/methodname
   methodparamtypestring/typeparameterdata/parameter/methodparam
   methodparam 
choice=opttypeint/typeparameterlevel/parameter/methodparam
+  methodparam 
+choice=opttypeint/typeparameterencoding_mode/parameter/methodparam
  /methodsynopsis
 para   
  This function returns a compressed version of the input
- parameterdata/parameter compatible with the output of
- the commandgzip/command program,
- or false; if an error is encountered. The optional parameter
- parameterlevel/parameter can be given as 0 for no
- compression up to 9 for maximum compression, if not given
- the default compression level will be 1.
+ parameterdata/parameter compatible with the output of the
+ commandgzip/command program, or false; if an error is
+ encountered. The optional parameter parameterlevel/parameter
+ can be given as 0 for no compression up to 9 for maximum
+ compression, if not given the default compression level will be
+ the default compression level of the zlib library.
+/para
+para
+ You can also give constantFORCE_GZIP/constant (the default)
+ or constantFORCE_DEFLATE/constant as optional third paramter
+ parameterencoding_mode/parameter. If you use
+ constantFORCE_DEFLATE/constant, you get a standard zlib
+ deflated string (inclusive zlib headers) after the gzip file
+ header but without the trailing crc32 checksum.
+ note
+  para
+   parameterlevel/parameter was added in PHP 4.2, before PHP
+   4.2 functiongzencode/function only had the
+   parameterdata/parameter and (optional)
+   parameterencoding_mode/parameter parameters..
+  /para 
+ /note
 /para
 para
  The resulting data contains the appropriate headers and data





[PHP-DOC] cvs: phpdoc /en/functions zlib.xml

2002-02-05 Thread Derick Rethans

derick  Tue Feb  5 13:23:13 2002 EDT

  Modified files:  
/phpdoc/en/functionszlib.xml 
  Log:
  - Fix for bug #15387
  
  
Index: phpdoc/en/functions/zlib.xml
diff -u phpdoc/en/functions/zlib.xml:1.22 phpdoc/en/functions/zlib.xml:1.23
--- phpdoc/en/functions/zlib.xml:1.22   Sat Feb  2 10:36:11 2002
+++ phpdoc/en/functions/zlib.xmlTue Feb  5 13:23:12 2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.22 $ --
+!-- $Revision: 1.23 $ --
  reference id=ref.zlib
   titleZlib Compression Functions/title
   titleabbrevZlib/titleabbrev
@@ -733,11 +733,11 @@
   programlisting role=php
 ![CDATA[
 ?php
-$data = implode(, bigfile.txt);
-$gzdata = gzencode($data, 9);
-$fp = fopen(bigfile.txt.gz, w);
-fwrite($fp, $gzdata);
-fclose($fp);
+$data = implode(, file(bigfile.txt));
+$gzdata = gzencode($data, 9);
+$fp = fopen(bigfile.txt.gz, w);
+fwrite($fp, $gzdata);
+fclose($fp);
 ?
 ]]
   /programlisting





[PHP-DOC] cvs: phpdoc /en/functions zlib.xml

2001-03-07 Thread Jesus M. Castagnetto

jmcastagnetto   Wed Mar  7 02:40:44 2001 EDT

  Modified files:  
/phpdoc/en/functionszlib.xml 
  Log:
  Minor mods in description of gzcompress, gzdeflate, gzencode
  
  
Index: phpdoc/en/functions/zlib.xml
diff -u phpdoc/en/functions/zlib.xml:1.11 phpdoc/en/functions/zlib.xml:1.12
--- phpdoc/en/functions/zlib.xml:1.11   Wed Mar  7 00:36:01 2001
+++ phpdoc/en/functions/zlib.xmlWed Mar  7 02:40:44 2001
@@ -624,7 +624,7 @@
 /funcsynopsis
 para
  This function returns a compressed version of the input
- parameterdata/parameter using the ZLIB algorithm,
+ parameterdata/parameter using the ZLIB data format,
  or false if an error is encountered. The optional parameter
  parameterlevel/parameter can be given as 0 for no
  compression up to 9 for maximum compression.
@@ -701,7 +701,7 @@
 /funcsynopsis
 para
  This function returns a compressed version of the input
- parameterdata/parameter using the DEFLATE algorithm,
+ parameterdata/parameter using the DEFLATE data format,
  or false if an error is encountered. The optional parameter
  parameterlevel/parameter can be given as 0 for no
  compression up to 9 for maximum compression.
@@ -798,7 +798,7 @@
 para
  For more information on the GZIP file format, see the document:
  ulink url="url.rfc1952"GZIP file format specification
- version 4.3/ulink.
+ version 4.3/ulink (RFC 1952).
 /para
 para
  See also functiongzcompress/function.





[PHP-DOC] cvs: phpdoc /en/functions zlib.xml

2001-01-22 Thread Jim Winstead

jimwMon Jan 22 18:29:41 2001 EDT

  Modified files:  
/phpdoc/en/functionszlib.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.9Fri Oct 13 05:59:27 2000
+++ phpdoc/en/functions/zlib.xmlMon Jan 22 18:29:41 2001
@@ -609,7 +609,7 @@
   refentry id="function.gzcompress"
refnamediv
 refnamegzcompress/refname
-refpurposeGz-compress a string/refpurpose
+refpurposeDeflate a string/refpurpose
/refnamediv
refsect1
 titleDescription/title
@@ -623,11 +623,19 @@
  /funcprototype
 /funcsynopsis
 para
- This function returns a gzip-compressed version of the input
- parameterdata/parameter or false on errors. The optional
- parameter parameterlevel/parameter can be given as 0 for no
+ This function returns a compressed version of the input
+ parameterdata/parameter using the deflate algorithm,
+ or false if an error is encountered. The optional parameter
+ parameterlevel/parameter can be given as 0 for no
  compression up to 9 for maximum compression.
 /para
+note
+ para
+  This is emphasisnot/emphasis the same as gzip compression,
+  which includes some header data. See functiongzencode/function
+  for gzip compression.
+ /para
+/note
 para
  See also functiongzuncompress/function.
 /para
@@ -637,7 +645,7 @@
   refentry id="function.gzuncompress"
refnamediv
 refnamegzuncompress/refname
-refpurposeUncompress a gz-compressed string/refpurpose
+refpurposeUncompress a deflated string/refpurpose
/refnamediv
refsect1
 titleDescription/title
@@ -652,9 +660,9 @@
 /funcsynopsis
 para 
  This function takes parameterdata/parameter compressed by
- functiongzcompress/function and returns the orignial
+ functiongzcompress/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 parameterdata/parameter or more than
  the optional parameter parameterlength/parameter.
 /para