|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20548 Decrement ("$x[$y]--") doesn't work on uninitiated variable
Submitted: 2002-11-21 12:42 UTC Modified: 2003-09-27 20:01 UTC
Avg. Score:4.4 ± 1.2
Reproduced:10 of 10 (100.0%)
Same Version:4 (40.0%)
Same OS:5 (50.0%)
From: prgallier at yahoo dot com Assigned:
Status: Wont fix Package: Scripting Engine problem
PHP Version: 4.3.2-dev OS: Linux 2.4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
17 + 8 = ?
Subscribe to this entry?

 [2002-11-21 12:42 UTC] prgallier at yahoo dot com
The following:
does not affect $score[$num] if $score[$num] is uninitiated.
Using $score[$num]++ does work, however.
This is inconsistent.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-03 12:57 UTC]
This is a valid bug, however a fix would be a BC break that would result in a beahviour change that was in place since 3.0 days.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Jan 31 01:05:52 2023 UTC