php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3416 Syntax highlighting mis-parses here-documents
Submitted: 2000-02-06 07:41 UTC Modified: 2000-02-11 22:21 UTC
From: stas at zend dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Latest CVS (06/02/2000) OS: Linux
Private report: No CVE-ID: None
 [2000-02-06 07:41 UTC] stas at zend dot com
Script:

<?
print <<< END
well, this "seems" to 'work' just fine.
END;

?>

run via php -s, produces:

<code><font color="#000000">
<font color="#0000BB">&lt;?<br></font><font color="#007700">print&nbsp;&lt;&lt;&lt;&nbsp;END<br></font><font color="#0000BB">well,&nbsp;this&nbsp;"seems"&nbsp;to&nbsp;'work'&nbsp;just&nbsp;fine.<br></font><font color="#007700">END;;;<br></font><font color="#0000BB">?&gt;<br></font><br></font>
</code>

Note two extra ;-s after the END. Not much of a problem, but a problem still.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-02-11 22:21 UTC] andrei at cvs dot php dot net
The latest CVS doesn't seem to have this problem.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 01 06:01:32 2024 UTC