Bug #18592 Updated: in C++ style comments '//' are PHP tags '<?php' and '?>' parsed
| From: | cynic@php.net | Date: | Fri, 26 Jul 2002 13:42:44 +0000 |
| Subject: | Bug #18592 Updated: in C++ style comments '//' are PHP tags '<?php' and '?>' parsed | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-15337@lists.php.net to get a copy of this message | ||
ID: 18592
Updated by: cynic@php.net
Reported By: nepto@pobox.sk
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: FreeBSD, GNU/Linux
PHP Version: 4.2.0
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2002-07-26 09:35:19] nepto@pobox.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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18592&edit=1