#21014 [Bgs]: $x++-1 doesnt work
| From: | thomas at cyberverden dot dk | Date: | Sat, 14 Dec 2002 19:42:15 +0000 |
| Subject: | #21014 [Bgs]: $x++-1 doesnt work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-27718@lists.php.net to get a copy of this message | ||
ID: 21014
User updated by: thomas@cyberverden.dk
Reported By: thomas@cyberverden.dk
Status: Bogus
Bug Type: *General Issues
Operating System: windows
PHP Version: 4.2.3
New Comment:
Very sorry - now it seems like I can't reproduce the error either. But
something definately was wrong - perhaps it was me though ;)
Previous Comments:
------------------------------------------------------------------------
[2002-12-14 13:15:07] hholzgra@php.net
can't verify, windows behaves exactly like unix
(and as they both share the same engine a windows-only bug is not
likely here)
------------------------------------------------------------------------
[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