kickassamd Posted March 1, 2007 Share Posted March 1, 2007 Basically i view the PHP file in IE and get this back "fdssdfdsfds"); // Loop Through Words foreach ($wordList as $key => $value) { echo "Key: $key; Value: $value; \n"; } ?> Its printing PHP code... Ive noticed that if i remove the => from foreach it doesnt print the foreach() portion... Also if i roll back to 5.2.0 and run the same file... It outputs correctly with out the code... Is this a bug in 5.2.1?? Quote Link to comment https://forums.phpfreaks.com/topic/40670-php-521-bug/ Share on other sites More sharing options...
kickassamd Posted March 1, 2007 Author Share Posted March 1, 2007 Here is the file itself... <? $wordList = array("sdfdds" => "fdssdfdsfds"); // Loop Through Words foreach ($wordList as $key => $value) { echo "Key: $key; Value: $value;<br />\n"; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/40670-php-521-bug/#findComment-196763 Share on other sites More sharing options...
trq Posted March 1, 2007 Share Posted March 1, 2007 Are you sure you have short tags enabled in your ini? Its bad practice. Quote Link to comment https://forums.phpfreaks.com/topic/40670-php-521-bug/#findComment-196821 Share on other sites More sharing options...
ToonMariner Posted March 1, 2007 Share Posted March 1, 2007 BAN SHORT TAGS!!!!!! Quote Link to comment https://forums.phpfreaks.com/topic/40670-php-521-bug/#findComment-196894 Share on other sites More sharing options...
kickassamd Posted March 1, 2007 Author Share Posted March 1, 2007 Ill check...but i cant stand doing the long tags bothers the **** out of me. Quote Link to comment https://forums.phpfreaks.com/topic/40670-php-521-bug/#findComment-197156 Share on other sites More sharing options...
kickassamd Posted March 1, 2007 Author Share Posted March 1, 2007 Yep thanks thorpe fixed it Quote Link to comment https://forums.phpfreaks.com/topic/40670-php-521-bug/#findComment-197158 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.