#30634 [Bgs->Opn]: // Doesn't completely comment out certain lines

From: Date: Mon, 01 Nov 2004 02:12:12 +0000
Subject: #30634 [Bgs->Opn]: // Doesn't completely comment out certain lines
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-68547@lists.php.net to get a copy of this message
ID: 30634 User updated by: tonglebeak at gmail dot com Reported By: tonglebeak at gmail dot com -Status: Bogus +Status: Open Bug Type: Unknown/Other Function Operating System: Linux PHP Version: 4.3.9 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#68547) next »