php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18592 in C++ style comments '//' are PHP tags '<?php' and '?>' parsed
Submitted: 2002-07-26 09:35 UTC Modified: 2002-07-26 09:42 UTC
From: nepto at pobox dot sk Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.2.0 OS: FreeBSD, GNU/Linux
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: nepto at pobox dot sk
New email:
PHP Version: OS:

 

 [2002-07-26 09:35 UTC] nepto at pobox dot sk
Look at this small example:

<?php

// Do you know PHP tags?
// No? So they are '<?php' and '?>'. Nice, aren't they?

echo 'test';

?>

After run from shell ($ php example.php), this will print:

X-Powered-By: PHP/4.2.0
Content-type: text/html

'. Nice, aren't they?

echo 'test';

?>

I expected, that it should print only 'test' without apostrophes. Of course,
also with appropriate HTTP headers.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-26 09:42 UTC] cynic@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 07:01:33 2024 UTC