Page 1 of 1

Bug in PHP Code blocks...

Posted: Sun Jul 31, 2005 3:42 pm
by nielsene
For some reason the code highlighter is collapsing two lines to one in some cases. While normally this isn't too big of a problem, it does mess up closing tags of heredocs:

Example Code

Code: Select all

$test=<<<END_TEST
Hello DevNet
This is the same source used in the PHP example next;
END_TEST;
if ($foo==&quote;bar&quote;) // this if should not be on the same line as the END above
Now as PHP

Code: Select all

$test=<<<END_TEST
Hello DevNet
This is the same source used in the PHP example next;
END_TEST;
if ($foo=="bar") // this if should not be on the same line as the END above
Notice how Code 4&amp;5 were collaposed to PHP 4. You can beat this by adding an extra newline between the HEREDOC end and the next statement, but that seems unusual.

Posted: Sun Jul 31, 2005 4:35 pm
by McGruff
Hi. This will be changed shortly.