language/wrappers/compression.xml
ec6e871a47fa15228aa3299f46fed826422adbc0
...
...
@@ -1,7 +1,7 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
3

4
-
<refentry xml:id="wrappers.compression" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" role="noversion">
4
+
<refentry xml:id="wrappers.compression" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" annotations="verify_info:false">
5
5
<refnamediv>
6
6
<refname>zlib://</refname>
7
7
<refname>bzip2://</refname>
...
...
@@ -11,13 +11,12 @@
11
11

12
12
<refsect1 role="description"><!-- {{{ -->
13
13
&reftitle.description;
14
-
<simpara><filename>zlib:</filename> PHP 4.0.4 - PHP 4.2.3 (systems with fopencookie only)</simpara>
15
-
<simpara><filename>compress.zlib://</filename> and <filename>compress.bzip2://</filename> PHP 4.3.0 and up</simpara>
14
+
<simpara><filename>compress.zlib://</filename> and <filename>compress.bzip2://</filename></simpara>
16
15

17
16
<simpara>
18
17
<filename>zlib:</filename> works like <function>gzopen</function>, except that the
19
18
stream can be used with <function>fread</function> and the other
20
-
filesystem functions. This is deprecated as of PHP 4.3.0 due
19
+
filesystem functions. This is deprecated due
21
20
to ambiguities with filenames containing ':' characters; use
22
21
<filename>compress.zlib://</filename> instead.
23
22
</simpara>
...
...
@@ -29,9 +28,13 @@
29
28
respectively, and operate even on systems that do not support
30
29
fopencookie.
31
30
</simpara>
32
-
<para>
33
-
<link linkend="book.zip">ZIP extension</link> registers <filename>zip:</filename> wrapper.
34
-
</para>
31
+

32
+
<simpara>
33
+
<link linkend="book.zip">ZIP extension</link> registers <filename>zip:</filename> wrapper. As of
34
+
PHP 7.2.0 and libzip 1.2.0+, support for the passwords for encrypted archives were added, allowing
35
+
passwords to be supplied by stream contexts. Passwords can be set using the <literal>'password'</literal>
36
+
stream context option.
37
+
</simpara>
35
38
</refsect1><!-- }}} -->
36
39

37
40
<refsect1 role="usage"> <!-- {{{ -->
...
...
@@ -108,6 +111,12 @@
108
111
</para>
109
112
</refsect1> <!-- }}} -->
110
113

114
+
<refsect1 role="seealso">
115
+
&reftitle.seealso;
116
+
<simplelist>
117
+
<member><xref linkend="context.zlib" /></member>
118
+
</simplelist>
119
+
</refsect1>
111
120
</refentry>
112
121

113
122
<!-- Keep this comment at the end of the file
114
123