svn: /phpdoc/ja/trunk/language/ control-structures/continue.xml predefined/arithmeticerror.xml

From: Date: Wed, 25 Sep 2019 10:39:26 +0000
Subject: svn: /phpdoc/ja/trunk/language/ control-structures/continue.xml predefined/arithmeticerror.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-5071@lists.php.net to get a copy of this message
satoruyoshida Wed, 25 Sep 2019 10:39:26 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=348064 Log: correct typo and sync en Changed paths: U phpdoc/ja/trunk/language/control-structures/continue.xml U phpdoc/ja/trunk/language/predefined/arithmeticerror.xml Modified: phpdoc/ja/trunk/language/control-structures/continue.xml =================================================================== --- phpdoc/ja/trunk/language/control-structures/continue.xml 2019-09-25 10:13:10 UTC (rev 348063) +++ phpdoc/ja/trunk/language/control-structures/continue.xml 2019-09-25 10:39:26 UTC (rev 348064) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 338501 Maintainer: takagi Status: ready --> +<!-- EN-Revision: 345956 Maintainer: takagi Status: ready --> <sect1 xml:id="control-structures.continue" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title><literal>continue</literal></title> @@ -32,7 +32,7 @@ <programlisting role="php"> <![CDATA[ <?php -while (list($key, $value) = each($arr)) { +foreach ($arr as $key => $value) { if (!($key % 2)) { // キーが偶数の組をスキップします continue; } @@ -102,7 +102,7 @@ </para> <note> <para> - PHP 5.4.0 移行では、先ほどの例を実行すると + PHP 5.4.0 以降では、先ほどの例を実行すると <constant>E_COMPILE_ERROR</constant> エラーが発生するようになりました。 </para> </note> @@ -119,7 +119,14 @@ </row> </thead> <tbody> - <row> + <row> + <entry>7.0.0</entry> + <entry> + ループまたは <literal>switch</literal> 制御構造の外部の <literal>continue</literal> は、 + 以前のように実行時ではなくコンパイル時に検出されるようになり、<constant>E_COMPILE_ERROR</constant> をトリガーします。 + </entry> + </row> + <row> <entry>5.4.0</entry> <entry> <literal>continue 0;</literal> が使えなくなりました。今までのバージョンでは、これは Modified: phpdoc/ja/trunk/language/predefined/arithmeticerror.xml =================================================================== --- phpdoc/ja/trunk/language/predefined/arithmeticerror.xml 2019-09-25 10:13:10 UTC (rev 348063) +++ phpdoc/ja/trunk/language/predefined/arithmeticerror.xml 2019-09-25 10:39:26 UTC (rev 348064) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 338826 Maintainer: takagi Status: ready --> +<!-- EN-Revision: 345729 Maintainer: takagi Status: ready --> <phpdoc:exceptionref xml:id="class.arithmeticerror" xmlns="http://docbook.org/ns/docbook" @@ -19,7 +19,7 @@ <ooclass><classname>ArithmeticError</classname></ooclass> は、数学的な操作でエラーが発生した場合にスローされます。 PHP 7.0 では、たとえばマイナスのビットシフトを行おうとした場合などに発生します。 - また、結果が <type>integer</type> の範囲をこえてしまうのうな + また、結果が <type>integer</type> の範囲をこえてしまうような <function>intdiv</function> の呼び出しの際にも発生します。 </para> </section> @@ -45,6 +45,11 @@ </classsynopsisinfo> <!-- }}} --> + <classsynopsisinfo role="comment">&InheritedProperties;</classsynopsisinfo> + <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.error')/db:partintro/db:section/db:classsynopsis/db:fieldsynopsis[preceding-sibling::db:classsynopsisinfo[1][@role='comment' and text()='&Properties;']]))"> + <xi:fallback /> + </xi:include> + <classsynopsisinfo role="comment">&InheritedMethods;</classsynopsisinfo> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.error')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> </classsynopsis>

« previous php.doc.ja (#5071) next »