Re: PHP 4.0 Bug #6053 Updated: commenting with // and ?>

From: Date: Wed, 09 Aug 2000 15:03:22 +0000
Subject: Re: PHP 4.0 Bug #6053 Updated: commenting with // and ?>
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-28275@lists.php.net to get a copy of this message
At 16:44 9-8-00 +0200, Jurian wrote:
I have to agree here, // is used to comment out an entire line (as in, everything from //, to the end of the line, not to EOL OR ?>
I find this a verry annoying behaviour i don't know what others think about this But that also means that code like this wont work like you think it should work: <?
        for ($x = 0; $x < 10; $x++) {
                echo "plop($x)";
//              ?>this is x: <?=$x?> blah
        }
?> using the // for debug Greetz, Wico
At 16:45 9-8-2000 +0200, Wico de Leeuw wrote:
At 02:34 10-8-00 +0000, Bug Database wrote:
ID: 6053 Updated by: stas Reported By: wico@cnh.nl Status: Closed Bug Type: Scripting Engine problem Assigned To: Comments: This si by design. Use /* */.
I can't believe this is the intended behavior // should skip the whole line and not stop by a ?>
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.dev (#28275) next »