note 33074 rejected from language.types.string by betz
| From: | betz@php.net | Date: | Sun, 15 Jun 2003 22:17:40 +0000 |
| Subject: | note 33074 rejected from language.types.string by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-50400@lists.php.net to get a copy of this message | ||
Note Submitter: pat at sluggo dot org
----
I'm pretty sure I've found a bug in the parser's interpretation of HEREDOC syntax, I
find that any construct like this:
if ( condition )
{
print <<<HTML
some HTML stuff
HTML;
if ( someothercondition )
{
print <<<HTML
some HTML stuff
HTML;
}
else
{
print <<<HTML
some HTML stuff
HTML;
}
print <<<HTML
end of page stuff
HTML;
} // end first if block
Will never parse right, it gripes about an unexpected T_SL at the second print <<<HTML
statement. I've tried messing about with the lf combos, etc.. but it never seems to work
propely, yet I thought I used this under older versions of PHP.