#30634 [Opn->Bgs]: // Doesn't completely comment out certain lines
| From: | helly@php.net | Date: | Mon, 01 Nov 2004 02:25:56 +0000 |
| Subject: | #30634 [Opn->Bgs]: // Doesn't completely comment out certain lines | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-68550@lists.php.net to get a copy of this message | ||
ID: 30634
Updated by: helly@php.net
Reported By: tonglebeak at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
-Operating System: Linux
+Operating System: *
-PHP Version: 4.3.9
+PHP Version: *
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
Please read the documentation and don't reopen this bug. Fix your code.
Your comment contains '?>'
Previous Comments:
------------------------------------------------------------------------
[2004-11-01 03:12:07] tonglebeak at gmail dot com
Apparently, my report wasn't read correctly. Lemme just link you to the
output and the code:
output: http://turkeybot.info/dst.php
code: http://turkeybot.info/blah.txt
------------------------------------------------------------------------
[2004-10-31 21:41:15] helly@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
.
------------------------------------------------------------------------
[2004-10-31 21:33:47] tonglebeak at gmail dot com
Description:
------------
For lines, with I guess certain strings or something in them, the //
will fail to completely comment out a line. Not sure how to exactly
describe it, so just go by the code I give you.
Note: the comment might wrap on this screen, but that's all 1 single
line.
Reproduce code:
---------------
<?
//$settings=(stristr($_SERVER['HTTP_USER_AGENT'],'MSIE') ||
stristr($_SERVER['HTTP_USER_AGENT'],'Googlebot')) ? '':'<?xml
version="1.0" encoding="utf-8"?>' .NL. '';
?>
Expected result:
----------------
Nothing should occur with that line.
Actual result:
--------------
For some reason, "' .NL. '' ?>" is outputted.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30634&edit=1