ID: 21820 Comment by: coda at bobandgeorge dot com Reported By: george at omniti dot com Status: Closed Bug Type: Scripting Engine problem PHP Version: 4.3.2-RC1 New Comment:
Argh; I was relying on the way that worked before, and when my server admin upgraded to 4.3.2, all my scripts stopped working. >_< Previous Comments: ------------------------------------------------------------------------ [2003-04-25 05:15:19] [EMAIL PROTECTED] This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2003-04-25 01:14:19] [EMAIL PROTECTED] de-assign. :) ------------------------------------------------------------------------ [2003-04-23 02:34:07] [EMAIL PROTECTED] It's been couple of weeks (almost :) since Andi promised to fix this..maybe this will wake him up.. ------------------------------------------------------------------------ [2003-03-13 14:05:48] [EMAIL PROTECTED] This still provides a bogus E_NOTICE, which is the bug. The feature request of "$arr['foo']" working is #15677 not #21820 To simply fix the bug, 4.3.2 should provide a parse error just like 4.2.3 does. A/the discussion took place on the zend2 mailing list, which can be seen around here: http://www.zend.com/lists/engine2/200302/maillist.html Thread title: "[Zend Engine 2] fix for bug 21820" ------------------------------------------------------------------------ [2003-02-25 04:50:31] [EMAIL PROTECTED] Stig's reply on the mailing list: Take consistency further, and you wonder should "'a'" === "a"? No, so why should "$foo['a']" === "$foo[a]"? The index is already quoted, it's inside the string. The syntax we're talking about here is supposed to be straightforward and simple, and for any kind of tricks we recommend the "{$foo['a']}" syntax. IMHO this would bloat the syntax beyond straightforward. -------- Thus we better keep it like it is now -> wont fix. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/21820 -- Edit this bug report at http://bugs.php.net/?id=21820&edit=1