#41373 [Opn->Bgs]: Incorrect expression evaluation with pre-increment
| From: | johannes@php.net | Date: | Sat, 12 May 2007 09:38:50 +0000 |
| Subject: | #41373 [Opn->Bgs]: Incorrect expression evaluation with pre-increment | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-112575@lists.php.net to get a copy of this message | ||
ID: 41373
Updated by: johannes@php.net
Reported By: romy4 at online dot ua
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: WinNT,Linux
PHP Version: 5.2.2
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
The evaluation order of this construct is undefined and random things
may happen.
Previous Comments:
------------------------------------------------------------------------
[2007-05-12 08:41:56] itonix at inet dot ua
Very! VERY important bug
------------------------------------------------------------------------
[2007-05-12 08:33:05] romy4 at online dot ua
Description:
------------
PHP incorrectly evaluates code with variable pre-increment
Reproduce code:
---------------
$i=5;
$i=++$i + ++$i;
echo $i;
Expected result:
----------------
Expecting 14
Evaluated 13
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41373&edit=1