ID: 27086
User updated by: jaba at inbox dot lv
Reported By: jaba at inbox dot lv
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: any?
PHP Version: 5.0.0b3 (beta3)
New Comment:
If this is not a bug, i must be an elephant. Just check this out, sir:
At first, take this code:
<?php
echo '?>';
echo '?>';
echo '?>';
?>
And then take this one:
<?php
echo '?>';
//echo '?>';
echo '?>';
?>
This is bug if i cant comment a line that outputs a string that has
"some special characters".
Previous Comments:
------------------------------------------------------------------------
[2004-01-29 08:22:46] [EMAIL PROTECTED]
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
.
------------------------------------------------------------------------
[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