svn: /phpdoc/ru/trunk/ appendices/migration74/other-changes.xml reference/mbstring/functions/mb-check-encoding.xml reference/mbstring/functions/mb-convert-encoding.xml

[email protected] (Sergey Panteleev)
Newsgroups php.doc.ru
Message-ID <[email protected]>
sergey                                   Tue, 01 Oct 2019 05:11:30 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=348109

Log:
docs(ru): Updated to English revision

Changed paths:
    U   phpdoc/ru/trunk/appendices/migration74/other-changes.xml
    U   phpdoc/ru/trunk/reference/mbstring/functions/mb-check-encoding.xml
    U   phpdoc/ru/trunk/reference/mbstring/functions/mb-convert-encoding.xml
svn-diffs-348109.txt (text/x-diff, 8.8 KB)
Modified: phpdoc/ru/trunk/appendices/migration74/other-changes.xml
===================================================================
--- phpdoc/ru/trunk/appendices/migration74/other-changes.xml	2019-09-30 14:03:34 UTC (rev 348108)
+++ phpdoc/ru/trunk/appendices/migration74/other-changes.xml	2019-10-01 05:11:30 UTC (rev 348109)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 348051 Maintainer: lex Status: ready -->
+<!-- EN-Revision: 348106 Maintainer: lex Status: ready -->
 <!-- Reviewed: yes Maintainer: sergey -->

 <sect1 xml:id="migration74.other-changes" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -357,7 +357,7 @@
   <para>
    Модуль <link linkend="book.filter">filter</link> больше не поддерживает
    <option role="configure">---with-pcre-dir</option> для Unix-сборок и поэтому может быть спокойно
-   собран для общего пользования с помощью <literal>./configure</literal>.
+   собран для общего пользования с помощью <command>./configure</command>.
   </para>
  </sect2>


Modified: phpdoc/ru/trunk/reference/mbstring/functions/mb-check-encoding.xml
===================================================================
--- phpdoc/ru/trunk/reference/mbstring/functions/mb-check-encoding.xml	2019-09-30 14:03:34 UTC (rev 348108)
+++ phpdoc/ru/trunk/reference/mbstring/functions/mb-check-encoding.xml	2019-10-01 05:11:30 UTC (rev 348109)
@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 338331 Maintainer: tmn Status: ready -->
+<!-- EN-Revision: 348104 Maintainer: tmn Status: ready -->
 <!-- Reviewed: yes -->
 <!-- $Revision$ -->
 <refentry xml:id="function.mb-check-encoding" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  <refnamediv>
   <refname>mb_check_encoding</refname>
-  <refpurpose>Проверяет, что кодировка для строки выбрана верно</refpurpose>
+  <refpurpose>Проверяет, что кодировка строк выбрана верно</refpurpose>
  </refnamediv>

  <refsect1 role="description">
@@ -12,11 +12,13 @@
   &reftitle.description;
   <methodsynopsis>
    <type>bool</type><methodname>mb_check_encoding</methodname>
-   <methodparam choice="opt"><type>string</type><parameter>var</parameter><initializer>&null;</initializer></methodparam>
+   <methodparam choice="opt"><type>mixed</type><parameter>var</parameter><initializer>&null;</initializer></methodparam>
    <methodparam choice="opt"><type>string</type><parameter>encoding</parameter><initializer>mb_internal_encoding()</initializer></methodparam>
   </methodsynopsis>
   <para>
    Проверяет, что для потока данных подходит выбранная кодировка.
+   Если <parameter>var</parameter> является массивом (&array;), все ключи и значения
+   проверяются рекурсивно.
    Функция может быть полезной для предотвращения так называемой "Атаки
    неправильной кодировкой".
   </para>
@@ -32,7 +34,7 @@
      <term><parameter>var</parameter></term>
      <listitem>
       <para>
-       Поток данных для проверки. Если не задан, функция проверит все входные
+       Поток данных или массив (&array;) для проверки. Если не задан, функция проверит все входные
        данные с начала запроса.
       </para>
      </listitem>
@@ -56,6 +58,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>7.2.0</entry>
+      <entry>
+       Функция теперь также принимает массив (&array;) в <parameter>var</parameter>.
+       Ранее поддерживались только строки (&string;).
+      </entry>
+     </row>
+    </tbody>
+   </tgroup>
+  </informaltable>
+ </refsect1>
+
 </refentry>

 <!-- Keep this comment at the end of the file

Modified: phpdoc/ru/trunk/reference/mbstring/functions/mb-convert-encoding.xml
===================================================================
--- phpdoc/ru/trunk/reference/mbstring/functions/mb-convert-encoding.xml	2019-09-30 14:03:34 UTC (rev 348108)
+++ phpdoc/ru/trunk/reference/mbstring/functions/mb-convert-encoding.xml	2019-10-01 05:11:30 UTC (rev 348109)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 331340 Maintainer: mch Status: ready -->
+<!-- EN-Revision: 348104 Maintainer: mch Status: ready -->
 <!-- $Revision$ -->
 <!-- Reviewed: yes -->
 <refentry xml:id="function.mb-convert-encoding" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -7,31 +7,33 @@
   <refname>mb_convert_encoding</refname>
   <refpurpose>Преобразует кодировку символов</refpurpose>
  </refnamediv>
-
+
  <refsect1 role="description">
   &reftitle.description;
   <methodsynopsis>
-   <type>string</type><methodname>mb_convert_encoding</methodname>
-   <methodparam><type>string</type><parameter>str</parameter></methodparam>
+   <type>mixed</type><methodname>mb_convert_encoding</methodname>
+   <methodparam><type>mixed</type><parameter>val</parameter></methodparam>
    <methodparam><type>string</type><parameter>to_encoding</parameter></methodparam>
    <methodparam choice="opt"><type>mixed</type><parameter>from_encoding</parameter><initializer>mb_internal_encoding()</initializer></methodparam>
   </methodsynopsis>
   <para>
-   Преобразует символы строки <parameter>str</parameter> (<type>string</type>)
+   Преобразует символы <parameter>val</parameter>
    в кодировку <parameter>to_encoding</parameter>.
    Также можно указать необязательный параметр <parameter>from_encoding</parameter>.
+   Если <parameter>val</parameter> является массивом (&array;), все его строковые (&string;) значения будут
+   преобразованы рекурсивно.
   </para>
  </refsect1>
-
+
  <refsect1 role="parameters">
   &reftitle.parameters;
   <para>
    <variablelist>
     <varlistentry>
-     <term><parameter>str</parameter></term>
+     <term><parameter>val</parameter></term>
      <listitem>
       <para>
-       Строка (<type>string</type>), которая преобразуется.
+       Строка (&string;) или массив (&array;), для преобразования.
       </para>
      </listitem>
     </varlistentry>
@@ -39,7 +41,7 @@
      <term><parameter>to_encoding</parameter></term>
      <listitem>
       <para>
-       Кодировка, в которую будет преобразована строка <parameter>str</parameter>.
+       Кодировка, в которую будут преобразованы данные из <parameter>val</parameter>.
       </para>
      </listitem>
     </varlistentry>
@@ -54,7 +56,7 @@
        <!-- link to internal encoding info -->
       </para>
       <para>
-      См. <link linkend="mbstring.supported-encodings">поддерживаемые кодировки</link>.
+       Смотрите <link linkend="mbstring.supported-encodings">поддерживаемые кодировки</link>.
       </para>
      </listitem>
     </varlistentry>
@@ -65,10 +67,10 @@
  <refsect1 role="returnvalues">
   &reftitle.returnvalues;
   <para>
-   Преобразованная строка (<type>string</type>).
+   Преобразованная строка (&string;) или массив (&array;).
   </para>
  </refsect1>
-
+
  <refsect1 role="examples">
   &reftitle.examples;
   <para>
@@ -94,7 +96,7 @@
    </example>
   </para>
  </refsect1>
-
+
  <refsect1 role="seealso">
   &reftitle.seealso;
   <para>
@@ -104,6 +106,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>7.2.0</entry>
+      <entry>
+       Функция теперь также принимает массив (&array;) в <parameter>val</parameter>.
+       Ранее поддерживались только строки (&string;).
+      </entry>
+     </row>
+    </tbody>
+   </tgroup>
+  </informaltable>
+ </refsect1>
+
 </refentry>

 <!-- Keep this comment at the end of the file
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.