Bug #7387 Updated: weird problems with unquoted array subscripts
| From: | jeroen@php.net | Date: | Tue, 22 May 2001 22:11:06 +0000 |
| Subject: | Bug #7387 Updated: weird problems with unquoted array subscripts | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-56370@lists.php.net to get a copy of this message | ||
ID: 7387
Updated by: jeroen
Reported By: delme@jumeaux.bc.ca
Old-Status: Assigned
Status: Closed
Bug Type: Documentation problem
Operating system:
PHP Version: 4 (any)
Assigned To: jeroen
Comments:
Included big warning in manual about this.
Previous Comments:
---------------------------------------------------------------------------
[2001-05-20 21:27:06] jeroen@php.net
I am currently writing the section 'why is $foo[bar] bad' in the arrays section. It will
adress this problem, so that in the future you can say: RTFM
---------------------------------------------------------------------------
[2001-05-06 11:23:02] derick@php.net
Any progress on this?
---------------------------------------------------------------------------
[2000-12-09 12:22:43] joey@php.net
James:
Since you have a better idea of exactly what it is you
want to document, I'm moving this to you. Close it whenever
you think it is sufficently documented.
---------------------------------------------------------------------------
[2000-11-17 11:17:15] jmoore@php.net
Maybe we should look at documenting how the engine corrects bad coding. We often get questions on
#php about the engine correcting unquoted string constants and any other behaviour like this. I cant
think of any others now but maybe a new chapter on debugging troublesome code or common errors etc
is necessary in the manual. This might belong in the FAQ but I think a chapter in the docs wouldnt
go amiss. Maybe another thing we should think about doing is including the FAQ in the manual as well
as on php.net itself.
---------------------------------------------------------------------------
[2000-10-24 04:44:00] joey@php.net
This is neither a bug in PHP, nor a doc bug...I will make
the incompat entry more explicit as soon as I can get to the
CVS, but you can see from the last comment what the problem
is: you are using a predefined constant as a key in an assoc.
array. This would be termed, at best, as "undefined".
---------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view the rest of the comments,
please view the bug report online.
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=7387&edit=2