Revert Yasuo's incorrect change regarding undefined behavior

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330986 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Sara Golemon 2013-07-20 04:03:07 +00:00
parent 1f540fa961
commit 95664a500f

View file

@ -232,9 +232,9 @@ $a = 1;
$b = 2;
$a = $b += 3; // $a = ($b += 3) -> $a = 5, $b = 5
// mixing ++ and +
// mixing ++ and + produces undefined behavior
$a = 1;
echo ++$a + $a++; // same as ++$a; echo $a + $a; $a++;
echo ++$a + $a++; // may print 4 or 5
?>
]]>
</programlisting>