php.net |  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
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:
MUST BE VALID
Solve the problem:
44 + 18 = ?
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.

eg

<?
// 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-31 08:12 UTC] cynic@php.net
read the manual. this is how it works.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 01 19:01:30 2024 UTC