[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/language/_operators.xml?=
From: Nikita_Popov <nikic () php ! net>
Date: 2013-09-29 10:17:33
Message-ID: svn-nikic-1380449853-331577-166821377 () svn ! php ! net
[Download RAW message or body]
nikic Sun, 29 Sep 2013 10:17:33 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=331577
Log:
Forgot to remove duplicate example from precedence docs
Changed paths:
U phpdoc/en/trunk/language/operators.xml
Modified: phpdoc/en/trunk/language/operators.xml
===================================================================
--- phpdoc/en/trunk/language/operators.xml 2013-09-29 10:02:24 UTC (rev 331576)
+++ phpdoc/en/trunk/language/operators.xml 2013-09-29 10:17:33 UTC (rev 331577)
@@ -237,10 +237,6 @@
$a = 1;
$b = 2;
$a = $b += 3; // $a = ($b += 3) -> $a = 5, $b = 5
-
-// mixing ++ and + produces undefined behavior
-$a = 1;
-echo ++$a + $a++; // may print 4 or 5
?>
]]>
</programlisting>
@@ -251,7 +247,8 @@
are grouped, they do not specify an order of evaluation. PHP does not
(in the general case) specify in which order an expression is evaluated
and code that assumes a specific order of evaluation should be avoided,
- because it can change between versions of PHP without further notice.
+ because the behavior can change between versions of PHP or depending on
+ the surrounding code.
<example>
<title>Undefined order of evaluation</title>
<programlisting role="php">
--
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic