#30634 [NEW]: // Doesn't completely comment out certain lines
| From: | tonglebeak at gmail dot com | Date: | Sun, 31 Oct 2004 20:33:48 +0000 |
| Subject: | #30634 [NEW]: // Doesn't completely comment out certain lines | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-68530@lists.php.net to get a copy of this message | ||
From: tonglebeak at gmail dot com
Operating system: Linux
PHP version: 4.3.9
PHP Bug Type: Unknown/Other Function
Bug description: // Doesn't completely comment out certain lines
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 bug report at http://bugs.php.net/?id=30634&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30634&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30634&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30634&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30634&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30634&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30634&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30634&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30634&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30634&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30634&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30634&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30634&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30634&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30634&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30634&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30634&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30634&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30634&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30634&r=mysqlcfg