svn: /phpdoc/ru/trunk/reference/json/functions/ json-decode.xml json-encode.xml json-last-error-msg.xml

[email protected] (Sergey Panteleev) Wed, 18 Nov 2020 19:58:08 +0000
Newsgroups php.doc.ru
Message-ID <[email protected]>
sergey                                   Wed, 18 Nov 2020 19:58:08 +0000

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

Log:
docs(ru): Updated to English revision

Changed paths:
    U   phpdoc/ru/trunk/reference/json/functions/json-decode.xml
    U   phpdoc/ru/trunk/reference/json/functions/json-encode.xml
    U   phpdoc/ru/trunk/reference/json/functions/json-last-error-msg.xml
svn-diffs-351427.txt (text/x-diff, 8.8 KB)
Modified: phpdoc/ru/trunk/reference/json/functions/json-decode.xml
===================================================================
--- phpdoc/ru/trunk/reference/json/functions/json-decode.xml	2020-11-18 16:20:34 UTC (rev 351426)
+++ phpdoc/ru/trunk/reference/json/functions/json-decode.xml	2020-11-18 19:58:08 UTC (rev 351427)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 350654 Maintainer: irker Status: ready -->
+<!-- EN-Revision: 351406 Maintainer: irker Status: ready -->
 <!-- Reviewed: yes -->
 <!-- $Revision$ -->
 <refentry xml:id="function.json-decode" xmlns="http://docbook.org/ns/docbook">
@@ -13,9 +13,9 @@
   <methodsynopsis>
    <type>mixed</type><methodname>json_decode</methodname>
    <methodparam><type>string</type><parameter>json</parameter></methodparam>
-   <methodparam choice="opt"><type>bool</type><parameter>assoc</parameter><initializer>&null;</initializer></methodparam>
+   <methodparam choice="opt"><type class="union"><type>bool</type><type>null</type></type><parameter>associative</parameter><initializer>&null;</initializer></methodparam>
    <methodparam choice="opt"><type>int</type><parameter>depth</parameter><initializer>512</initializer></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>0</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>0</initializer></methodparam>
   </methodsynopsis>
   <para>
    Принимает закодированную в JSON строку и преобразует ее в переменную PHP.
@@ -39,7 +39,7 @@
      </listitem>
     </varlistentry>
     <varlistentry>
-     <term><parameter>assoc</parameter></term>
+     <term><parameter>associative</parameter></term>
      <listitem>
       <para>
        Если &true;, объекты JSON будут возвращены как
@@ -46,7 +46,7 @@
        ассоциативные массивы (&array;); если &false;, объекты JSON будут возвращены как объекты (&object;).
        Если &null;, объекты JSON будут возвращены как ассоциативные массивы (&array;) или
        объекты (&object;) в зависимости от того, установлена ли <constant>JSON_OBJECT_AS_ARRAY</constant>
-       в <parameter>options</parameter>.
+       в <parameter>flags</parameter>.
       </para>
      </listitem>
     </varlistentry>
@@ -59,7 +59,7 @@
      </listitem>
     </varlistentry>
     <varlistentry>
-     <term><parameter>options</parameter></term>
+     <term><parameter>flags</parameter></term>
      <listitem>
       <para>
        Битовая маска из констант
@@ -105,13 +105,13 @@
        <entry>7.3.0</entry>
        <entry>
         Добавлена константа <constant>JSON_THROW_ON_ERROR</constant>
-        для параметра <parameter>options</parameter>.
+        для параметра <parameter>flags</parameter>.
        </entry>
       </row>
       <row>
        <entry>7.2.0</entry>
        <entry>
-        <parameter>assoc</parameter> теперь nullable.
+        <parameter>associative</parameter> теперь nullable.
        </entry>
       </row>
       <row>
@@ -120,7 +120,7 @@
         Добавлены константы
         <constant>JSON_INVALID_UTF8_IGNORE</constant> и
         <constant>JSON_INVALID_UTF8_SUBSTITUTE</constant>
-        для параметра <parameter>options</parameter>.
+        для параметра <parameter>flags</parameter>.
        </entry>
       </row>
       <row>
@@ -340,7 +340,6 @@
   </para>
  </refsect1>
 </refentry>
-
 <!-- Keep this comment at the end of the file
 Local variables:
 mode: sgml

Modified: phpdoc/ru/trunk/reference/json/functions/json-encode.xml
===================================================================
--- phpdoc/ru/trunk/reference/json/functions/json-encode.xml	2020-11-18 16:20:34 UTC (rev 351426)
+++ phpdoc/ru/trunk/reference/json/functions/json-encode.xml	2020-11-18 19:58:08 UTC (rev 351427)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 351135 Maintainer: rjhdby Status: ready -->
+<!-- EN-Revision: 351406 Maintainer: rjhdby Status: ready -->
 <!-- Reviewed: yes -->
 <!-- $Revision$ -->
 <refentry xml:id="function.json-encode" xmlns="http://docbook.org/ns/docbook">
@@ -13,7 +13,7 @@
   <methodsynopsis>
    <type class="union"><type>string</type><type>false</type></type><methodname>json_encode</methodname>
    <methodparam><type>mixed</type><parameter>value</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>0</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>0</initializer></methodparam>
    <methodparam choice="opt"><type>int</type><parameter>depth</parameter><initializer>512</initializer></methodparam>
   </methodsynopsis>
   <para>
@@ -20,7 +20,7 @@
    Возвращает строку, содержащую JSON-представление для указанного <parameter>value</parameter>.
   </para>
   <para>
-   На кодирование влияет параметр <parameter>options</parameter> и,
+   На кодирование влияет параметр <parameter>flags</parameter> и,
    кроме того, кодирование значений типа float зависит от значения
    <link linkend="ini.serialize-precision">serialize_precision</link>.
   </para>
@@ -44,7 +44,7 @@
      </listitem>
     </varlistentry>
     <varlistentry>
-     <term><parameter>options</parameter></term>
+     <term><parameter>flags</parameter></term>
      <listitem>
       <para>
        Битовая маска, составляемая из значений
@@ -104,7 +104,7 @@
        <entry>
         Добавлена константа
         <constant>JSON_THROW_ON_ERROR</constant>
-        для параметра <parameter>options</parameter>.
+        для параметра <parameter>flags</parameter>.
        </entry>
       </row>
       <row>
@@ -113,7 +113,7 @@
         Добавлены константы
         <constant>JSON_INVALID_UTF8_IGNORE</constant> и
         <constant>JSON_INVALID_UTF8_SUBSTITUTE</constant>
-        для параметра <parameter>options</parameter>.
+        для параметра <parameter>flags</parameter>.
        </entry>
       </row>
       <row>
@@ -121,7 +121,7 @@
        <entry>
         Добавлена константа
         <constant>JSON_UNESCAPED_LINE_TERMINATORS</constant>
-        для параметра <parameter>options</parameter>.
+        для параметра <parameter>flags</parameter>.
        </entry>
       </row>
       <row>
@@ -397,7 +397,6 @@
   </para>
  </refsect1>
 </refentry>
-
 <!-- Keep this comment at the end of the file
 Local variables:
 mode: sgml

Modified: phpdoc/ru/trunk/reference/json/functions/json-last-error-msg.xml
===================================================================
--- phpdoc/ru/trunk/reference/json/functions/json-last-error-msg.xml	2020-11-18 16:20:34 UTC (rev 351426)
+++ phpdoc/ru/trunk/reference/json/functions/json-last-error-msg.xml	2020-11-18 19:58:08 UTC (rev 351427)
@@ -1,8 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 351135 Maintainer: rjhdby Status: ready -->
+<!-- EN-Revision: 351406 Maintainer: rjhdby Status: ready -->
 <!-- Reviewed: yes -->
 <!-- $Revision$ -->
-
 <refentry xml:id="function.json-last-error-msg" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  <refnamediv>
   <refname>json_last_error_msg</refname>
@@ -12,8 +11,8 @@
  <refsect1 role="description">
   &reftitle.description;
   <methodsynopsis>
-   <type class="union"><type>string</type><type>false</type></type><methodname>json_last_error_msg</methodname>
-   <void />
+   <type>string</type><methodname>json_last_error_msg</methodname>
+   <void/>
   </methodsynopsis>
   <para>
    Возвращает текстовое описание последней ошибки, произошедшей
@@ -31,9 +30,8 @@
  <refsect1 role="returnvalues">
   &reftitle.returnvalues;
   <para>
-   Возвращает сообщение об ошибке в случае успешного выполнения,
-   <literal>"No error"</literal>, если ошибки не произошло,
-   &return.falseforfailure;.
+   Возвращает сообщение об ошибке в случае успешного выполнения или
+   <literal>"No error"</literal>, если ошибки не произошло.
   </para>
  </refsect1>

@@ -47,7 +45,6 @@
  </refsect1>

 </refentry>
-
 <!-- Keep this comment at the end of the file
 Local variables:
 mode: sgml