#22500 [Opn->Bgs]: problem with incrementing !!!

From: Date: Sun, 02 Mar 2003 08:19:29 +0000
Subject: #22500 [Opn->Bgs]: problem with incrementing !!!
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-34609@lists.php.net to get a copy of this message
ID: 22500 Updated by: moriyoshi@php.net Reported By: yordanovm at yahoo dot com -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Windows XP PHP Version: 4.3.0 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 See http://marc.theaimsgroup.com/?l=php-dev&m=104047708101628&w=2 Previous Comments: ------------------------------------------------------------------------ [2003-03-01 18:25:47] yordanovm at yahoo dot com ----------- $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 this bug report at http://bugs.php.net/?id=22500&edit=1

« previous php.bugs (#34609) next »