#30634 [NEW]: // Doesn't completely comment out certain lines
by tonglebeak at gmail dot com other posts by this author
Oct 31 2004 8:33PM messages near this date
#30635 [Opn]: exception handler does not work
|
#30634 [Opn->Bgs]: // Doesn't completely comment out certain lines
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
Thread:
tonglebeak at gmail dot com
tonglebeak at gmail dot com
|