#21014 [Opn->Bgs]: $x++-1 doesnt work

From: Date: Sat, 14 Dec 2002 19:15:07 +0000
Subject: #21014 [Opn->Bgs]: $x++-1 doesnt work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-27717@lists.php.net to get a copy of this message
ID: 21014 Updated by: hholzgra@php.net Reported By: thomas@cyberverden.dk -Status: Open +Status: Bogus Bug Type: *General Issues Operating System: windows PHP Version: 4.2.3 New Comment: can't verify, windows behaves exactly like unix (and as they both share the same engine a windows-only bug is not likely here) Previous Comments: ------------------------------------------------------------------------ [2002-12-14 12:29:06] thomas@cyberverden.dk On php4.2.3. on windows $x++-1 evaluates to $x (which I belive is wrong. First evaluate and then increment). on unix (php version ?) it evaluates to $x-1 (which I beliave is correct). I havent tried with CVS ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21014&edit=1

« previous php.bugs (#27717) next »