php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21014 $x++-1 doesnt work
Submitted: 2002-12-14 12:29 UTC Modified: 2002-12-14 13:42 UTC
From: thomas at cyberverden dot dk Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.2.3 OS: windows
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: thomas at cyberverden dot dk
New email:
PHP Version: OS:

 

 [2002-12-14 12:29 UTC] thomas at cyberverden dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-14 13:15 UTC] 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 13:42 UTC] thomas at cyberverden dot dk
Very sorry - now it seems like I can't reproduce the error either. But something definately was wrong - perhaps it was me though ;)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Oct 05 10:01:27 2024 UTC