svn: /phpdoc/ru/trunk/ language/control-structures/continue.xml reference/var/functions/intval.xml

[email protected] (Andrey Gromov)
Newsgroups php.doc.ru
Message-ID <[email protected]>
rjhdby                                   Tue, 03 Dec 2019 17:38:25 +0000

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

Log:
upd

Changed paths:
    U   phpdoc/ru/trunk/language/control-structures/continue.xml
    U   phpdoc/ru/trunk/reference/var/functions/intval.xml

Modified: phpdoc/ru/trunk/language/control-structures/continue.xml
===================================================================
--- phpdoc/ru/trunk/language/control-structures/continue.xml	2019-12-03 16:44:44 UTC (rev 348405)
+++ phpdoc/ru/trunk/language/control-structures/continue.xml	2019-12-03 17:38:25 UTC (rev 348406)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 345956 Maintainer: mch Status: ready -->
+<!-- EN-Revision: 348403 Maintainer: mch Status: ready -->
 <!-- $Revision$ -->
 <!-- Reviewed: yes -->

@@ -17,7 +17,8 @@
    <link linkend="control-structures.switch">switch</link> считается
    циклическим и внутри него может использоваться <literal>continue</literal>.
    Если <literal>continue</literal> не передано аргументов, то он ведет себя
-   аналогично <literal>break</literal>. Если <literal>switch</literal> расположен
+   аналогично <literal>break</literal>, но выдает предупреждение о
+   возможной ошибке. Если <literal>switch</literal> расположен
    внутри цикла, <literal>continue 2</literal> продолжит выполнение внешнего
    цикла со следующей итерации.
   </simpara>
@@ -121,6 +122,15 @@
     </thead>
     <tbody>
      <row>
+      <entry>7.3.0</entry>
+           <entry>
+            <literal>continue</literal> внутри <literal>switch</literal>,
+            использующееся как замена <literal>break</literal>
+            для  <literal>switch</literal> будет вызывать ошибку
+            уровня <constant>E_WARNING</constant>.
+           </entry>
+     </row>
+     <row>
       <entry>7.0.0</entry>
       <entry>
        Операторы <literal>break</literal> и <literal>continue</literal> вне цикла

Modified: phpdoc/ru/trunk/reference/var/functions/intval.xml
===================================================================
--- phpdoc/ru/trunk/reference/var/functions/intval.xml	2019-12-03 16:44:44 UTC (rev 348405)
+++ phpdoc/ru/trunk/reference/var/functions/intval.xml	2019-12-03 17:38:25 UTC (rev 348406)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 331179 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 348405 Maintainer: shein Status: ready -->
 <!-- Reviewed: yes -->
 <!-- $Revision$ -->
 <refentry xml:id="function.intval" xmlns="http://docbook.org/ns/docbook">
@@ -7,7 +7,7 @@
   <refname>intval</refname>
   <refpurpose>Возвращает целое значение переменной</refpurpose>
  </refnamediv>
-
+
  <refsect1 role="description">
   &reftitle.description;
   <methodsynopsis>
@@ -23,7 +23,7 @@
    вызовет ошибку уровня <constant>E_NOTICE</constant> и вернет значение 1.
   </para>
  </refsect1>
-
+
  <refsect1 role="parameters">
   &reftitle.parameters;
   <para>
@@ -71,7 +71,7 @@
    </variablelist>
   </para>
  </refsect1>
-
+
  <refsect1 role="returnvalues">
   &reftitle.returnvalues;
   <para>
@@ -90,7 +90,7 @@
    <link linkend="language.types.integer.casting">преобразований в целые</link>.
   </para>
  </refsect1>
-
+
  <refsect1 role="examples">
   &reftitle.examples;
   <para>
@@ -119,6 +119,8 @@
 echo intval('42', 8);                 // 34
 echo intval(array());                 // 0
 echo intval(array('foo', 'bar'));     // 1
+echo intval(false);                   // 0
+echo intval(true);                    // 1
 ?>
 ]]>
     </programlisting>
@@ -125,7 +127,7 @@
    </example>
   </para>
  </refsect1>
-
+
  <refsect1 role="notes">
   &reftitle.notes;
   <note>
@@ -135,7 +137,7 @@
    </para>
   </note>
  </refsect1>
-
+
  <refsect1 role="changelog"><!-- {{{ -->
   &reftitle.changelog;
   <para>
@@ -161,7 +163,7 @@
    </informaltable>
   </para>
  </refsect1><!-- }}} -->
-
+
  <refsect1 role="seealso">
   &reftitle.seealso;
   <para>
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.