#22500 [NEW]: problem with incrementing !!!

From: Date: Sun, 02 Mar 2003 00:25:47 +0000
Subject: #22500 [NEW]: problem with incrementing !!!
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-34601@lists.php.net to get a copy of this message
From: yordanovm at yahoo dot com Operating system: Windows XP PHP version: 4.3.0 PHP Bug Type: Scripting Engine problem Bug description: problem with incrementing !!! ----------- $a = 10; $c = & $a; $a = $a + $a++; echo $a; the result is 21 ----------- ----------- $a = 10; // $c = & $a; $a = $a + $a++; echo $a; the result is 20 ----------- WHY ??? -- Edit bug report at http://bugs.php.net/?id=22500&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22500&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22500&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22500&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22500&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22500&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22500&r=support Expected behavior: http://bugs.php.net/fix.php?id=22500&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22500&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22500&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22500&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22500&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22500&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22500&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22500&r=gnused

« previous php.bugs (#34601) next »