ID: 20601 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: No Feedback +Status: Open -Bug Type: Unknown/Other Function +Bug Type: Documentation problem Operating System: Windows ME PHP Version: 4.3.0RC1 -Assigned To: +Assigned To: philip New Comment:
Btw, this happens when you do: print "a foo $bar['blah'] eh"; Don't do that. You can do either: print "a foo {$bar['blah']} eh"; print "a foo $bar[blah] eh"; print "a foo " . $bar['blah'] . " eh"; But when outside of strings always quote your keys: print $bar[blah]; // bad print $bar['blah']; // good Unless of course you defined blah as a constant earlier. Anyway I'm making a faq out of this question and marking as a doc bug because this question comes up a lot especially since 4.1.0 (autoglobals) and 4.2.0 (register_globals default change). Previous Comments: ------------------------------------------------------------------------ [2002-12-04 18:17:54] [EMAIL PROTECTED] No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. ------------------------------------------------------------------------ [2002-11-23 14:05:03] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. can you include a short script? ------------------------------------------------------------------------ [2002-11-23 14:01:43] [EMAIL PROTECTED] When using single quotes (i dont know if they will be allowed to show here) (') inside double quote strings ("), a parse error is produced; Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING This happened on Windows ME, using the latest Apache 1.3, and all settings in php.ini are default. This is very annoying, please fix it! ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20601&edit=1 -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php