php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1184 Invalid Parsing of comments
Submitted: 1999-02-25 10:55 UTC Modified: 1999-06-01 16:29 UTC
From: curt at emusic dot com Assigned:
Status: Closed Package: Other
PHP Version: 3.0.6 OS: NT/FreeBSD
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: curt at emusic dot com
New email:
PHP Version: OS:

 

 [1999-02-25 10:55 UTC] curt at emusic dot com
When I have a single line comment (// or #) the
parser seems to see the php end tag (?>) inside of
a string constant.

to reproduce the problem:
<?

$strtoeval = '<b><?echo "hello world"?></b>';
// eval ('?>'. $strtoeval);

?>



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-01 16:29 UTC] jim at cvs dot php dot net
This is the defined behavior (// and # only escape
until the end-of-line or end of the current code
block, whichever comes first).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 31 23:01:30 2024 UTC