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

From: Date: Wed, 09 Aug 2000 15:34:26 +0000
Subject: Re: PHP 4.0 Bug #6053 Updated: commenting with // and ?>
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-28286@lists.php.net to get a copy of this message
At 17:17 9-8-00 +0200, waldschrott wrote:
<?
       for ($x = 0; $x < 10; $x++) {
               echo "plop($x)";
//              ?>this is x: <?=$x?> blah
       }
?> using the // for debug
I could say it´s also annoying that in brackets "}" aren´t recognized in comments, like for (;;) { test(1); foo(4,4); // boo(3232); } I just want to have boo(3232); commented out, not the bracket, I have to move the bracket either to the next line or the previous one, we all try to be as lazy as possible, but I think we shouldn´t break backwards compatibility on such minor things
Maybe a new commenter like # or ## (only?) at the begin of the line that will cancel every thing following it also a ?> (you can do that nice with a regex ;) Greetz, Wico
2c --
o----------0-¬---------O-·---¬----o---®-----o o    O   °       .
| http://www.kiffen.de | pRoteçt y0ur bRaín |0  O °     ¤  °        ·
0°·³°²'²³-¹'³´³°^°³~³²³°'³²²¨³²^³¹³²°²³`³º³°Þ ° o © ° . ·
| psychedelic experience |  gott@kiffen.de  | O   ° o           °
o-¬--o--0-----©-·--O-----o-----0-¤----------o 0 ° · ° . ¤ ·


« previous php.dev (#28286) next »