diff --git a/reference/zlib/constants.xml b/reference/zlib/constants.xml new file mode 100644 index 0000000000..8f5e59d96d --- /dev/null +++ b/reference/zlib/constants.xml @@ -0,0 +1,48 @@ + + +
+ &reftitle.constants; + &extension.constants; + + + + FORCE_GZIP + (integer) + + + + + + + + + + FORCE_DEFLATE + (integer) + + + + + + + + +
+ + diff --git a/reference/zlib/reference.xml b/reference/zlib/reference.xml index 1eb69f5726..246b318929 100644 --- a/reference/zlib/reference.xml +++ b/reference/zlib/reference.xml @@ -1,46 +1,56 @@ - + Zlib Compression Functions Zlib - - - This module uses the functions of zlib by Jean-loup Gailly and Mark Adler to - transparently read and write gzip (.gz) compressed files. You have - to use a zlib version >= 1.0.9 with this module. - - - This module contains versions of most of the filesystem functions which work - with gzip-compressed files (and uncompressed files, too, but not - with sockets). - - - - 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 - fopen. - - - In version 4.3.0, this special prefix has been changed to 'zlib://' - to prevent ambiguities with filenames containing ':'. - - - This feature requires a C runtime library that provides the - fopencookie() function. To my current - knowledge the GNU libc is the only library that provides - this feature. - - -
- Small code example + +
+ &reftitle.intro; - Opens a temporary file and writes a test string to it, then it - prints out the content of this file twice. + This module enables you to transparently read and write + gzip (.gz) compressed files, through versions of most of + the filesystem functions + which work with gzip-compressed files (and uncompressed files, + too, but not with sockets). + + + + Version 4.0.4 introduced 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 + fopen. + + + In version 4.3.0, this special prefix has been changed to 'zlib://' + to prevent ambiguities with filenames containing ':'. + + + This feature requires a C runtime library that provides the + fopencookie() function. To my current + knowledge the GNU libc is the only library that provides + this feature. + + +
+ +
+ &reftitle.required; + + This module uses the functions of zlib + by Jean-loup Gailly and Mark Adler. You have to use a zlib + version >= 1.0.9 with this module. + +
+ + &reference.zlib.constants; + +
+ &reftitle.examples; + + This example opens a temporary file and writes a test string + to it, then it prints out the content of this file twice. Small Zlib Example