#27086 [Opn->Bgs]: Comments dont work if you have ?> in them
| From: | edink@php.net | Date: | Thu, 29 Jan 2004 13:22:46 +0000 |
| Subject: | #27086 [Opn->Bgs]: Comments dont work if you have ?> in them | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-54122@lists.php.net to get a copy of this message | ||
ID: 27086
Updated by: edink@php.net
Reported By: jaba at inbox dot lv
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: any?
PHP Version: 5.0.0b3 (beta3)
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:
------------------------------------------------------------------------
[2004-01-29 08:18:22] jaba at inbox dot lv
Description:
------------
Comment line starters # and // dont work properly. I thought everything
that follows these signs is considered a comment. Now in PHP5 (have no
place to test on PHP4 now) i find out that if i have the PHP tag ?> in
the commented line, the parser ends parsing PHP right there! So if you
have smth like this in your code, then the rest of php code is sent as
output !!!
Reproduce code:
---------------
<?php
echo 'hello world!';
// echo '?>';
$password='secretpassword';
?>
Expected result:
----------------
hello world!
Actual result:
--------------
hello world!';
$password='secretpassword';
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27086&edit=1