PHP 4.0 Bug #3416: Syntax highlighting mis-parses here-documents
| From: | stas at zend dot com | Date: | Sun, 06 Feb 2000 12:41:20 +0000 |
| Subject: | PHP 4.0 Bug #3416: Syntax highlighting mis-parses here-documents | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-15246@lists.php.net to get a copy of this message | ||
From: stas@zend.com
Operating system: Linux
PHP version: 4.0 Latest CVS (06/02/2000)
PHP Bug Type: Scripting Engine problem
Bug description: Syntax highlighting mis-parses here-documents
Script:
<?
print <<< END
well, this "seems" to 'work' just fine.
END;
?>
run via php -s, produces:
<code><font color="#000000">
<font color="#0000BB"><?<br></font><font
color="#007700">print <<< END<br></font><font
color="#0000BB">well, this "seems" to 'work' just fine.<br></font><font
color="#007700">END;;;<br></font><font
color="#0000BB">?><br></font><br></font>
</code>
Note two extra ;-s after the END. Not much of a problem, but a problem still.