Bug in PHP Code blocks...
Posted: Sun Jul 31, 2005 3:42 pm
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
Now as PHP
Notice how Code 4&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.
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=="e;bar"e;) // this if should not be on the same line as the END aboveCode: 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