#30634 [Opn->Bgs]: // Doesn't completely comment out certain lines
| From: | helly@php.net | Date: | Sun, 31 Oct 2004 20:41:17 +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-68531@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
PHP Version: 4.3.9
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-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