|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10090 PHP code parser interprets <? and ?> tags -IN- comments
Submitted: 2001-03-31 08:10 UTC Modified: 2001-03-31 08:12 UTC
From: chabotc at reviewboard dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.0.4pl1 OS: Redhat Linux 7.0
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.
Block user comment
Status: Assign to:
Bug Type:
From: chabotc at reviewboard dot com
New email:
PHP Version: OS:


 [2001-03-31 08:10 UTC] chabotc at reviewboard dot com
When writing a piece of code, with a comment containing <? or ?>
the block statements are still interpreted by the script parser.


// this is a comment about ?> tags
echo "hello";

would give you a syntax error when trying to run the script.

Since im writing a php source beautifier in PHP, this is kind of anoying :)

	-- Chris


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-31 08:12 UTC]
read the manual. this is how it works.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Oct 03 08:01:24 2023 UTC