mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
1f540fa961
commit
95664a500f
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue