ID:               41373
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to