svn: /phpdoc/ru/trunk/reference/zlib/ functions/deflate_add.xml functions/deflate_init.xml functions/gzclose.xml functions/gzcompress.xml functions/gzdecode.xml functions/gzdeflate.xml functions/gzencode.xml functions/gzeof.xml functions/gzfile.xml functions/gzgetc.xml functions/gzgets.xml functions/gzinflate.xml functions/gzopen.xml functions/gzpassthru.xml functions/gzread.xml functions/gzrewind.xml functions/gzseek.xml functions/gztell.xml functions/gzuncompress.xml functions/gzwrite.xml func
[email protected] (Sergey Panteleev) Wed, 25 Nov 2020 09:27:20 +0000
| Newsgroups | php.doc.ru |
|---|---|
| Message-ID | <[email protected]> |
sergey Wed, 25 Nov 2020 09:27:20 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=351637
Log:
docs(ru): Updated to English revision
Changed paths:
U phpdoc/ru/trunk/reference/zlib/functions/deflate_add.xml
U phpdoc/ru/trunk/reference/zlib/functions/deflate_init.xml
U phpdoc/ru/trunk/reference/zlib/functions/gzclose.xml
U phpdoc/ru/trunk/reference/zlib/functions/gzcompress.xml
U phpdoc/ru/trunk/reference/zlib/functions/gzdecode.xml
U phpdoc/ru/trunk/reference/zlib/functions/gzdeflate.xml
U phpdoc/ru/trunk/reference/zlib/functions/gzencode.xml
U phpdoc/ru/trunk/reference/zlib/functions/gzeof.xml
U phpdoc/ru/trunk/reference/zlib/functions/gzfile.xml
U phpdoc/ru/trunk/reference/zlib/functions/gzgetc.xml
U phpdoc/ru/trunk/reference/zlib/functions/gzgets.xml
U phpdoc/ru/trunk/reference/zlib/functions/gzinflate.xml
U phpdoc/ru/trunk/reference/zlib/functions/gzopen.xml
U phpdoc/ru/trunk/reference/zlib/functions/gzpassthru.xml
U phpdoc/ru/trunk/reference/zlib/functions/gzread.xml
U phpdoc/ru/trunk/reference/zlib/functions/gzrewind.xml
U phpdoc/ru/trunk/reference/zlib/functions/gzseek.xml
U phpdoc/ru/trunk/reference/zlib/functions/gztell.xml
U phpdoc/ru/trunk/reference/zlib/functions/gzuncompress.xml
U phpdoc/ru/trunk/reference/zlib/functions/gzwrite.xml
U phpdoc/ru/trunk/reference/zlib/functions/inflate-get-read-len.xml
U phpdoc/ru/trunk/reference/zlib/functions/inflate-get-status.xml
U phpdoc/ru/trunk/reference/zlib/functions/inflate_add.xml
U phpdoc/ru/trunk/reference/zlib/functions/inflate_init.xml
U phpdoc/ru/trunk/reference/zlib/functions/zlib-decode.xml
U phpdoc/ru/trunk/reference/zlib/functions/zlib-encode.xml
U phpdoc/ru/trunk/reference/zlib/functions/zlib-get-coding-type.xml
U phpdoc/ru/trunk/reference/zlib/setup.xml
svn-diffs-351637.txt
(text/x-diff, 54 KB)
Modified: phpdoc/ru/trunk/reference/zlib/functions/deflate_add.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/deflate_add.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/deflate_add.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 351135 Maintainer: rjhdby Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: rjhdby Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
-
<refentry xml:id="function.deflate-add" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>deflate_add</refname>
@@ -13,9 +12,9 @@
&reftitle.description;
<methodsynopsis>
<type class="union"><type>string</type><type>false</type></type><methodname>deflate_add</methodname>
- <methodparam><type>resource</type><parameter>context</parameter></methodparam>
+ <methodparam><type>DeflateContext</type><parameter>context</parameter></methodparam>
<methodparam><type>string</type><parameter>data</parameter></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>flush_mode</parameter><initializer>ZLIB_SYNC_FLUSH</initializer></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>flush_mode</parameter><initializer><constant>ZLIB_SYNC_FLUSH</constant></initializer></methodparam>
</methodsynopsis>
<para>
Инкрементальное сжатие данных в указанном контексте.
@@ -75,6 +74,29 @@
</para>
</refsect1><!-- }}} -->
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>8.0.0</entry>
+ <entry>
+ <parameter>context</parameter> ожидает экзеемпляр <classname>DeflateContext</classname>;
+ раньше, ожидался ресурс (<type>resource</type>).
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </refsect1>
+
<refsect1 role="seealso"><!-- {{{ -->
&reftitle.seealso;
<simplelist>
@@ -83,7 +105,6 @@
</refsect1><!-- }}} -->
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/functions/deflate_init.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/deflate_init.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/deflate_init.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 351455 Maintainer: rjhdby Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: rjhdby Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
-
<refentry xml:id="function.deflate-init" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>deflate_init</refname>
@@ -12,9 +11,9 @@
<refsect1 role="description"><!-- {{{ -->
&reftitle.description;
<methodsynopsis>
- <type class="union"><type>resource</type><type>false</type></type><methodname>deflate_init</methodname>
+ <type class="union"><type>DeflateContext</type><type>false</type></type><methodname>deflate_init</methodname>
<methodparam><type>int</type><parameter>encoding</parameter></methodparam>
- <methodparam choice="opt"><type>array</type><parameter>options</parameter><initializer>array()</initializer></methodparam>
+ <methodparam choice="opt"><type>array</type><parameter>options</parameter><initializer>[]</initializer></methodparam>
</methodsynopsis>
<para>
Инициализирует контекст инкрементального сжатия с использованием указанной кодировки
@@ -122,6 +121,29 @@
</para>
</refsect1><!-- }}} -->
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>8.0.0</entry>
+ <entry>
+ В случае успешного выполнения функция возвращает экземпляр <classname>DeflateContext</classname>;
+ раньше, возвращался ресурс (<type>resource</type>).
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </refsect1>
+
<refsect1 role="seealso"><!-- {{{ -->
&reftitle.seealso;
<simplelist>
@@ -131,7 +153,6 @@
</refsect1><!-- }}} -->
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/functions/gzclose.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/gzclose.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/gzclose.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297028 Maintainer: mch Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: mch Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.gzclose" xmlns="http://docbook.org/ns/docbook">
@@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>gzclose</methodname>
- <methodparam><type>resource</type><parameter>zp</parameter></methodparam>
+ <methodparam><type>resource</type><parameter>stream</parameter></methodparam>
</methodsynopsis>
<para>
Закрывает открытый gz-файл по переданному указателю.
@@ -22,7 +22,7 @@
<para>
<variablelist>
<varlistentry>
- <term><parameter>zp</parameter></term>
+ <term><parameter>stream</parameter></term>
<listitem>
<para>
Указатель на gz-файл. Должен указывать на файл, успешно открытый <function>gzopen</function>.
@@ -64,7 +64,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/functions/gzcompress.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/gzcompress.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/gzcompress.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 350656 Maintainer: mch Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: mch Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.gzcompress" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -10,10 +10,10 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>string</type><methodname>gzcompress</methodname>
+ <type class="union"><type>string</type><type>false</type></type><methodname>gzcompress</methodname>
<methodparam><type>string</type><parameter>data</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>level</parameter><initializer>-1</initializer></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>encoding</parameter><initializer>ZLIB_ENCODING_DEFLATE</initializer></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>encoding</parameter><initializer><constant>ZLIB_ENCODING_DEFLATE</constant></initializer></methodparam>
</methodsynopsis>
<para>
Данная функция сжимает строку используя формат данных <literal>ZLIB</literal>.
@@ -98,7 +98,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/functions/gzdecode.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/gzdecode.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/gzdecode.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297028 Maintainer: mch Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: mch Status: ready -->
<!-- $Revision$ -->
<!-- Reviewed: yes Maintainer: lex -->
<refentry xml:id="function.gzdecode" xmlns="http://docbook.org/ns/docbook">
@@ -10,9 +10,9 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>string</type><methodname>gzdecode</methodname>
+ <type class="union"><type>string</type><type>false</type></type><methodname>gzdecode</methodname>
<methodparam><type>string</type><parameter>data</parameter></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>length</parameter></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>max_length</parameter><initializer>0</initializer></methodparam>
</methodsynopsis>
<para>
Эта функция возвращает декодированную версию входных данных.
@@ -32,7 +32,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><parameter>length</parameter></term>
+ <term><parameter>max_length</parameter></term>
<listitem>
<para>
Максимальный размер строки для декодирования.
@@ -58,7 +58,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/functions/gzdeflate.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/gzdeflate.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/gzdeflate.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 350656 Maintainer: mch Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: mch Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.gzdeflate" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -10,10 +10,10 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>string</type><methodname>gzdeflate</methodname>
+ <type class="union"><type>string</type><type>false</type></type><methodname>gzdeflate</methodname>
<methodparam><type>string</type><parameter>data</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>level</parameter><initializer>-1</initializer></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>encoding</parameter><initializer>ZLIB_ENCODING_RAW</initializer></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>encoding</parameter><initializer><constant>ZLIB_ENCODING_RAW</constant></initializer></methodparam>
</methodsynopsis>
<para>
Данная функция сжимает строку, используя формат данных <literal>DEFLATE</literal>.
@@ -89,7 +89,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/functions/gzencode.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/gzencode.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/gzencode.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 350656 Maintainer: mch Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: mch Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.gzencode" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -11,10 +11,10 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>string</type><methodname>gzencode</methodname>
+ <type class="union"><type>string</type><type>false</type></type><methodname>gzencode</methodname>
<methodparam><type>string</type><parameter>data</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>level</parameter><initializer>-1</initializer></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>encoding_mode</parameter><initializer>FORCE_GZIP</initializer></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>encoding</parameter><initializer><constant>ZLIB_ENCODING_GZIP</constant></initializer></methodparam>
</methodsynopsis>
<para>
Эта функция возвращает сжатую версию входных данных <parameter>data</parameter>,
@@ -47,7 +47,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><parameter>encoding_mode</parameter></term>
+ <term><parameter>encoding</parameter></term>
<listitem>
<para>
Режим сжатия, может быть <constant>FORCE_GZIP</constant> (по умолчанию)
@@ -116,7 +116,6 @@
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/functions/gzeof.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/gzeof.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/gzeof.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297028 Maintainer: mch Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: mch Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.gzeof" xmlns="http://docbook.org/ns/docbook">
@@ -10,8 +10,8 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>int</type><methodname>gzeof</methodname>
- <methodparam><type>resource</type><parameter>zp</parameter></methodparam>
+ <type>bool</type><methodname>gzeof</methodname>
+ <methodparam><type>resource</type><parameter>stream</parameter></methodparam>
</methodsynopsis>
<para>
Проверяет, соответствует ли позиция указателя в GZ-файле позиции <acronym>EOF</acronym> (end-of-file, конец файла).
@@ -22,7 +22,7 @@
<para>
<variablelist>
<varlistentry>
- <term><parameter>zp</parameter></term>
+ <term><parameter>stream</parameter></term>
<listitem>
<para>
Указатель на gz-файл. Он должен быть корректный и должен указывать на файл,
@@ -60,7 +60,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/functions/gzfile.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/gzfile.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/gzfile.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 337662 Maintainer: mch Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: mch Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.gzfile" xmlns="http://docbook.org/ns/docbook">
@@ -10,7 +10,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>array</type><methodname>gzfile</methodname>
+ <type class="union"><type>array</type><type>false</type></type><methodname>gzfile</methodname>
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>use_include_path</parameter><initializer>0</initializer></methodparam>
</methodsynopsis>
@@ -47,7 +47,8 @@
&reftitle.returnvalues;
<para>
Массив строк файла, в каждом элементе массива находится одна строка,
- пустые строки включаются, а переносы строк по-прежнему добавляются.
+ пустые строки включаются, а переносы строк по-прежнему добавляются,
+ &return.falseforfailure;.
</para>
</refsect1>
<refsect1 role="examples">
@@ -78,7 +79,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/functions/gzgetc.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/gzgetc.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/gzgetc.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297028 Maintainer: mch Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: mch Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.gzgetc" xmlns="http://docbook.org/ns/docbook">
@@ -10,8 +10,8 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>string</type><methodname>gzgetc</methodname>
- <methodparam><type>resource</type><parameter>zp</parameter></methodparam>
+ <type class="union"><type>string</type><type>false</type></type><methodname>gzgetc</methodname>
+ <methodparam><type>resource</type><parameter>stream</parameter></methodparam>
</methodsynopsis>
<para>
Возвращает строку, содержащую один символ (несжатый), считанный из заданного указателя gz-файла.
@@ -22,7 +22,7 @@
<para>
<variablelist>
<varlistentry>
- <term><parameter>zp</parameter></term>
+ <term><parameter>stream</parameter></term>
<listitem>
<para>
Указатель на gz-файл. Он должен быть корректный и должен указывать на файл,
@@ -68,7 +68,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/functions/gzgets.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/gzgets.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/gzgets.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 333358 Maintainer: mch Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: mch Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.gzgets" xmlns="http://docbook.org/ns/docbook">
@@ -10,9 +10,9 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>string</type><methodname>gzgets</methodname>
- <methodparam><type>resource</type><parameter>zp</parameter></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>length</parameter></methodparam>
+ <type class="union"><type>string</type><type>false</type></type><methodname>gzgets</methodname>
+ <methodparam><type>resource</type><parameter>stream</parameter></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>length</parameter><initializer>1024</initializer></methodparam>
</methodsynopsis>
<para>
Получает строку (несжатую) из gz-файла, её длина ограничивается
@@ -26,7 +26,7 @@
<para>
<variablelist>
<varlistentry>
- <term><parameter>zp</parameter></term>
+ <term><parameter>stream</parameter></term>
<listitem>
<para>
Указатель на gz-файл. Он должен быть корректный и должен указывать на файл,
@@ -83,7 +83,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/functions/gzinflate.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/gzinflate.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/gzinflate.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 332332 Maintainer: mch Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: mch Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.gzinflate" xmlns="http://docbook.org/ns/docbook">
@@ -10,9 +10,9 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>string</type><methodname>gzinflate</methodname>
+ <type class="union"><type>string</type><type>false</type></type><methodname>gzinflate</methodname>
<methodparam><type>string</type><parameter>data</parameter></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>length</parameter><initializer>0</initializer></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>max_length</parameter><initializer>0</initializer></methodparam>
</methodsynopsis>
<para>
Распаковывает сжатую строку.
@@ -31,7 +31,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><parameter>length</parameter></term>
+ <term><parameter>max_length</parameter></term>
<listitem>
<para>
Максимальный размер данных для декодирования.
@@ -49,7 +49,7 @@
<para>
Функция вернет ошибку, если несжатые данные в
32768 раз больше размера сжатых данных <parameter>data</parameter> или
- больше параметра <parameter>length</parameter>.
+ больше параметра <parameter>max_length</parameter>.
</para>
</refsect1>
<refsect1 role="examples">
@@ -81,7 +81,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/functions/gzopen.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/gzopen.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/gzopen.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297028 Maintainer: mch Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: mch Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.gzopen" xmlns="http://docbook.org/ns/docbook">
@@ -10,7 +10,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>resource</type><methodname>gzopen</methodname>
+ <type class="union"><type>resource</type><type>false</type></type><methodname>gzopen</methodname>
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
<methodparam><type>string</type><parameter>mode</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>use_include_path</parameter><initializer>0</initializer></methodparam>
@@ -98,7 +98,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/functions/gzpassthru.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/gzpassthru.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/gzpassthru.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297028 Maintainer: mch Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: mch Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.gzpassthru" xmlns="http://docbook.org/ns/docbook">
@@ -13,7 +13,7 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>gzpassthru</methodname>
- <methodparam><type>resource</type><parameter>zp</parameter></methodparam>
+ <methodparam><type>resource</type><parameter>stream</parameter></methodparam>
</methodsynopsis>
<para>
Читает до конца файла (<acronym>EOF</acronym>) данные из указателя gz-файла,
@@ -38,7 +38,7 @@
<para>
<variablelist>
<varlistentry>
- <term><parameter>zp</parameter></term>
+ <term><parameter>stream</parameter></term>
<listitem>
<para>
Указатель на gz-файл, возвращённый, после его успешного открытия,
@@ -74,7 +74,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/functions/gzread.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/gzread.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/gzread.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297028 Maintainer: mch Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: mch Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.gzread" xmlns="http://docbook.org/ns/docbook">
@@ -10,8 +10,8 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>string</type><methodname>gzread</methodname>
- <methodparam><type>resource</type><parameter>zp</parameter></methodparam>
+ <type class="union"><type>string</type><type>false</type></type><methodname>gzread</methodname>
+ <methodparam><type>resource</type><parameter>stream</parameter></methodparam>
<methodparam><type>int</type><parameter>length</parameter></methodparam>
</methodsynopsis>
<para>
@@ -26,7 +26,7 @@
<para>
<variablelist>
<varlistentry>
- <term><parameter>zp</parameter></term>
+ <term><parameter>stream</parameter></term>
<listitem>
<para>
Указатель на gz-файл, возвращённый, после его успешного открытия,
@@ -48,9 +48,33 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Прочтённые данные.
+ Прочтённые данные, &return.falseforfailure;.
</para>
</refsect1>
+
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>7.4.0</entry>
+ <entry>
+ В случае возникновения ошибки возвращается &false;;
+ раньше, возвращался <literal>0</literal>.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </refsect1>
+
<refsect1 role="examples">
&reftitle.examples;
<para>
@@ -84,7 +108,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/functions/gzrewind.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/gzrewind.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/gzrewind.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297028 Maintainer: mch Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: mch Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.gzrewind" xmlns="http://docbook.org/ns/docbook">
@@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>gzrewind</methodname>
- <methodparam><type>resource</type><parameter>zp</parameter></methodparam>
+ <methodparam><type>resource</type><parameter>stream</parameter></methodparam>
</methodsynopsis>
<para>
Устанавливает указатель на позицию файла на начало потока этого файла.
@@ -22,7 +22,7 @@
<para>
<variablelist>
<varlistentry>
- <term><parameter>zp</parameter></term>
+ <term><parameter>stream</parameter></term>
<listitem>
<para>
Указатель на gz-файл, возвращённый, после его успешного открытия,
@@ -49,7 +49,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/functions/gzseek.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/gzseek.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/gzseek.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297028 Maintainer: mch Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: mch Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.gzseek" xmlns="http://docbook.org/ns/docbook">
@@ -11,9 +11,9 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>gzseek</methodname>
- <methodparam><type>resource</type><parameter>zp</parameter></methodparam>
+ <methodparam><type>resource</type><parameter>stream</parameter></methodparam>
<methodparam><type>int</type><parameter>offset</parameter></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>whence</parameter><initializer>SEEK_SET</initializer></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>whence</parameter><initializer><constant>SEEK_SET</constant></initializer></methodparam>
</methodsynopsis>
<para>
Устанавливает указатель на позицию в файле, на который ссылается zp.
@@ -32,7 +32,7 @@
<para>
<variablelist>
<varlistentry>
- <term><parameter>zp</parameter></term>
+ <term><parameter>stream</parameter></term>
<listitem>
<para>
Указатель на gz-файл, возвращённый, после его успешного открытия, функцией <function>gzopen</function>.
@@ -102,7 +102,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/functions/gztell.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/gztell.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/gztell.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297028 Maintainer: mch Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: mch Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.gztell" xmlns="http://docbook.org/ns/docbook">
@@ -10,8 +10,8 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>int</type><methodname>gztell</methodname>
- <methodparam><type>resource</type><parameter>zp</parameter></methodparam>
+ <type class="union"><type>int</type><type>false</type></type><methodname>gztell</methodname>
+ <methodparam><type>resource</type><parameter>stream</parameter></methodparam>
</methodsynopsis>
<para>
Получает позицию указателя файла, то есть смещение в потоке распакованного файла.
@@ -22,7 +22,7 @@
<para>
<variablelist>
<varlistentry>
- <term><parameter>zp</parameter></term>
+ <term><parameter>stream</parameter></term>
<listitem>
<para>
Указатель на gz-файл, возвращённый, после его успешного открытия,
@@ -50,7 +50,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/functions/gzuncompress.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/gzuncompress.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/gzuncompress.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297028 Maintainer: mch Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: mch Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.gzuncompress" xmlns="http://docbook.org/ns/docbook">
@@ -10,9 +10,9 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>string</type><methodname>gzuncompress</methodname>
+ <type class="union"><type>string</type><type>false</type></type><methodname>gzuncompress</methodname>
<methodparam><type>string</type><parameter>data</parameter></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>length</parameter><initializer>0</initializer></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>max_length</parameter><initializer>0</initializer></methodparam>
</methodsynopsis>
<para>
Распаковывает сжатую строку.
@@ -31,7 +31,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><parameter>length</parameter></term>
+ <term><parameter>max_length</parameter></term>
<listitem>
<para>
Максимальный размер данных для декодирования.
@@ -49,7 +49,7 @@
<para>
Функция также сообщит об ошибке в случае, если несжатые данные в
32768 раз больше размера сжатых данных <parameter>data</parameter> или
- больше параметра <parameter>length</parameter>.
+ больше параметра <parameter>max_length</parameter>.
</para>
</refsect1>
<refsect1 role="examples">
@@ -81,7 +81,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/functions/gzwrite.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/gzwrite.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/gzwrite.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297028 Maintainer: mch Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: mch Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.gzwrite" xmlns="http://docbook.org/ns/docbook">
@@ -10,13 +10,13 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>int</type><methodname>gzwrite</methodname>
- <methodparam><type>resource</type><parameter>zp</parameter></methodparam>
- <methodparam><type>string</type><parameter>string</parameter></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>length</parameter></methodparam>
+ <type class="union"><type>int</type><type>false</type></type><methodname>gzwrite</methodname>
+ <methodparam><type>resource</type><parameter>stream</parameter></methodparam>
+ <methodparam><type>string</type><parameter>data</parameter></methodparam>
+ <methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>length</parameter><initializer>&null;</initializer></methodparam>
</methodsynopsis>
<para>
- Записывает содержимое <parameter>string</parameter> в данный gz-файл.
+ <function>gzwrite</function> записывает содержимое <parameter>data</parameter> в данный gz-файл.
</para>
</refsect1>
<refsect1 role="parameters">
@@ -24,7 +24,7 @@
<para>
<variablelist>
<varlistentry>
- <term><parameter>zp</parameter></term>
+ <term><parameter>stream</parameter></term>
<listitem>
<para>
Указатель на gz-файл, возвращённый, после его успешного открытия,
@@ -33,7 +33,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><parameter>string</parameter></term>
+ <term><parameter>data</parameter></term>
<listitem>
<para>
Записываемая строка.
@@ -47,7 +47,7 @@
Число несжатых байтов для записи. Если указано, операция завершится
после записи <parameter>length</parameter> (до сжатия) байт или при достижении конца строки,
в зависимости от того, что наступит раньше.
- <parameter>string</parameter>.
+ <parameter>data</parameter>.
</para>
<note>
<para>
@@ -54,8 +54,8 @@
Обратите внимание, что если параметр <parameter>length</parameter>
задан, конфигурационный параметр <link
linkend="ini.magic-quotes-runtime">magic_quotes_runtime</link>
- будет проигнорирован и удаление слешей из записываемой
- строки не будет выполнено.
+ будет проигнорирован и удаление слешей из <parameter>data</parameter>
+ не будет выполнено.
</para>
</note>
</listitem>
@@ -67,9 +67,40 @@
&reftitle.returnvalues;
<para>
Возвращает количество записанных байт (без учёта сжатия)
- в поток gz-файла.
+ в поток gz-файла, &return.falseforfailure;.
</para>
</refsect1>
+
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>8.0.0</entry>
+ <entry>
+ <parameter>length</parameter> теперь допускает значение null;
+ раньше значением по умолчанию был <literal>0</literal>.
+ </entry>
+ </row>
+ <row>
+ <entry>7.4.0</entry>
+ <entry>
+ В случае возникновения ошибки функция возвращает &false;.
+ раньше возвращался <literal>0</literal>.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </refsect1>
+
<refsect1 role="examples">
&reftitle.examples;
<para>
@@ -98,7 +129,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/functions/inflate-get-read-len.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/inflate-get-read-len.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/inflate-get-read-len.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 351135 Maintainer: rjhdby Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: rjhdby Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
-
<refentry xml:id="function.inflate-get-read-len" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>inflate_get_read_len</refname>
@@ -12,8 +11,8 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type class="union"><type>int</type><type>false</type></type><methodname>inflate_get_read_len</methodname>
- <methodparam><type>resource</type><parameter>resource</parameter></methodparam>
+ <type>int</type><methodname>inflate_get_read_len</methodname>
+ <methodparam><type>InflateContext</type><parameter>context</parameter></methodparam>
</methodsynopsis>
<para>
@@ -27,7 +26,7 @@
&reftitle.parameters;
<variablelist>
<varlistentry>
- <term><parameter>resource</parameter></term>
+ <term><parameter>context</parameter></term>
<listitem>
<para>
@@ -44,8 +43,30 @@
</para>
</refsect1>
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>8.0.0</entry>
+ <entry>
+ <parameter>context</parameter> ожидает экземпляр <classname>InflateContext</classname>;
+ раньше, ожидался ресурс (<type>resource</type>).
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </refsect1>
+
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/functions/inflate-get-status.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/inflate-get-status.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/inflate-get-status.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 351135 Maintainer: rjhdby Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: rjhdby Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
-
<refentry xml:id="function.inflate-get-status" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>inflate_get_status</refname>
@@ -12,8 +11,8 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type class="union"><type>int</type><type>false</type></type><methodname>inflate_get_status</methodname>
- <methodparam><type>resource</type><parameter>resource</parameter></methodparam>
+ <type>int</type><methodname>inflate_get_status</methodname>
+ <methodparam><type>InflateContext</type><parameter>context</parameter></methodparam>
</methodsynopsis>
<para>
Обычно возвращает <constant>ZLIB_OK</constant> или <constant>ZLIB_STREAM_END</constant>.
@@ -25,7 +24,7 @@
&reftitle.parameters;
<variablelist>
<varlistentry>
- <term><parameter>resource</parameter></term>
+ <term><parameter>context</parameter></term>
<listitem>
<para>
@@ -41,9 +40,31 @@
Возвращает статус декомпрессии&return.falseforfailure;.
</para>
</refsect1>
+
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>8.0.0</entry>
+ <entry>
+ <parameter>context</parameter> ожидает экземпляр <classname>InflateContext</classname>;
+ раньше, ожидался ресурс (<type>resource</type>).
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/functions/inflate_add.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/inflate_add.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/inflate_add.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 351135 Maintainer: rjhdby Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: rjhdby Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
-
<refentry xml:id="function.inflate-add" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>inflate_add</refname>
@@ -13,9 +12,9 @@
&reftitle.description;
<methodsynopsis>
<type class="union"><type>string</type><type>false</type></type><methodname>inflate_add</methodname>
- <methodparam><type>resource</type><parameter>context</parameter></methodparam>
- <methodparam><type>string</type><parameter>encoded_data</parameter></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>flush_mode</parameter><initializer>ZLIB_SYNC_FLUSH</initializer></methodparam>
+ <methodparam><type>InflateContext</type><parameter>context</parameter></methodparam>
+ <methodparam><type>string</type><parameter>data</parameter></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>flush_mode</parameter><initializer><constant>ZLIB_SYNC_FLUSH</constant></initializer></methodparam>
</methodsynopsis>
<para>
Инкрементально распаковывает закодированные данные в указанном контексте <parameter>context</parameter>.
@@ -37,7 +36,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><parameter>encoded_data</parameter></term>
+ <term><parameter>data</parameter></term>
<listitem>
<para>
Блок сжатых данных.
@@ -79,6 +78,29 @@
</para>
</refsect1><!-- }}} -->
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>8.0.0</entry>
+ <entry>
+ <parameter>context</parameter> ожидает экземпляр <classname>InflateContext</classname>;
+ раньше, ожидался ресурс (<type>resource</type>).
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </refsect1>
+
<refsect1 role="seealso"><!-- {{{ -->
&reftitle.seealso;
<simplelist>
@@ -87,7 +109,6 @@
</refsect1><!-- }}} -->
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/functions/inflate_init.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/inflate_init.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/inflate_init.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 351135 Maintainer: rjhdby Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: rjhdby Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
-
<refentry xml:id="function.inflate-init" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>inflate_init</refname>
@@ -12,9 +11,9 @@
<refsect1 role="description"><!-- {{{ -->
&reftitle.description;
<methodsynopsis>
- <type class="union"><type>resource</type><type>false</type></type><methodname>inflate_init</methodname>
+ <type class="union"><type>InflateContext</type><type>false</type></type><methodname>inflate_init</methodname>
<methodparam><type>int</type><parameter>encoding</parameter></methodparam>
- <methodparam choice="opt"><type>array</type><parameter>options</parameter><initializer>array()</initializer></methodparam>
+ <methodparam choice="opt"><type>array</type><parameter>options</parameter><initializer>[]</initializer></methodparam>
</methodsynopsis>
<para>
Инициализирует контекст инкрементальной распаковки с указанной кодировкой
@@ -105,6 +104,29 @@
</para>
</refsect1><!-- }}} -->
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>8.0.0</entry>
+ <entry>
+ В случае успешного выполенения функция возвращает экземпляр <classname>InflateContext</classname>;
+ раньше возвращался ресурс (<type>resource</type>).
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </refsect1>
+
<refsect1 role="seealso"><!-- {{{ -->
&reftitle.seealso;
<simplelist>
@@ -114,7 +136,6 @@
</refsect1><!-- }}} -->
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/functions/zlib-decode.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/zlib-decode.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/zlib-decode.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 351135 Maintainer: irker Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: irker Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
<refentry xml:id="function.zlib-decode" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -13,7 +13,7 @@
<methodsynopsis>
<type class="union"><type>string</type><type>false</type></type><methodname>zlib_decode</methodname>
<methodparam><type>string</type><parameter>data</parameter></methodparam>
- <methodparam choice="opt"><type>string</type><parameter>max_decoded_len</parameter></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>max_length</parameter><initializer>0</initializer></methodparam>
</methodsynopsis>
<para>
Распаковывает любые закодированные данные raw/gzip/zlib.
@@ -35,7 +35,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><parameter>max_decoded_len</parameter></term>
+ <term><parameter>max_length</parameter></term>
<listitem>
<para>
@@ -60,7 +60,6 @@
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/functions/zlib-encode.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/zlib-encode.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/zlib-encode.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 343898 Maintainer: irker Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: irker Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
<refentry xml:id="function.zlib-encode" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -11,7 +11,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>string</type><methodname>zlib_encode</methodname>
+ <type class="union"><type>string</type><type>false</type></type><methodname>zlib_encode</methodname>
<methodparam><type>string</type><parameter>data</parameter></methodparam>
<methodparam><type>int</type><parameter>encoding</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>level</parameter><initializer>-1</initializer></methodparam>
@@ -93,7 +93,6 @@
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/functions/zlib-get-coding-type.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/functions/zlib-get-coding-type.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/functions/zlib-get-coding-type.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297028 Maintainer: mch Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: mch Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.zlib-get-coding-type" xmlns="http://docbook.org/ns/docbook">
@@ -10,8 +10,8 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>string</type><methodname>zlib_get_coding_type</methodname>
- <void />
+ <type class="union"><type>string</type><type>false</type></type><methodname>zlib_get_coding_type</methodname>
+ <void/>
</methodsynopsis>
<para>
Возвращает способ кодирования, используемый для сжатия вывода.
@@ -35,7 +35,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/zlib/setup.xml
===================================================================
--- phpdoc/ru/trunk/reference/zlib/setup.xml 2020-11-25 07:51:47 UTC (rev 351636)
+++ phpdoc/ru/trunk/reference/zlib/setup.xml 2020-11-25 09:27:20 UTC (rev 351637)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 345437 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351613 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
@@ -30,8 +30,10 @@
<section xml:id="zlib.resources">
&reftitle.resources;
<para>
- Этот модуль определяет ресурс дескриптора, который возвращается функцией
+ Модуль определяет ресурс дескриптора, который возвращается функцией
<function>gzopen</function>.
+ До PHP 8.0.0 также были определены ресурсы <literal>zlib.deflate</literal>
+ и <literal>zlib.inflate</literal>.
</para>
</section>
<!-- }}} -->