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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sun Dec 22 06:01:30 2024 UTC