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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 06:01:32 2025 UTC