|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
40 - 12 = ?
Subscribe to this entry?

 [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: Sun Sep 24 06:01:24 2023 UTC