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 Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or 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

Add a Patch

Pull Requests

Add a Pull Request

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: Wed May 01 09:01:30 2024 UTC