PHP 4.0 Bug #8203 Updated: not proper one-line comment handling in <% %> tags

From: Date: Tue, 19 Dec 2000 12:57:20 +0000
Subject: PHP 4.0 Bug #8203 Updated: not proper one-line comment handling in <% %> tags
Groups: php.dev 
Request: Send a blank email to php-dev+get-41849@lists.php.net to get a copy of this message
ID: 8203 Updated by: stas Reported By: antonio.b@infinito.it Old-Status: Open Status: Closed Bug Type: Scripting Engine problem Assigned To: Comments: Fixed in CVS, thanks. Previous Comments: --------------------------------------------------------------------------- [2000-12-12 00:22:52] antonio.b@infinito.it why this are legal: <?php echo "comment1"; # comment1 ?> <?php echo "comment2"; // comment2 ?> <? echo "comment3"; # comment3 ?> <? echo "comment4"; // comment4 ?> but the PHP parser won't accept these? <% echo "comment1"; # comment1 %> <% echo "comment2"; // comment2 %> i think this is a lack in the parser code which controls the # and // comment style. Am I right? Can be fixed? Of course a workaround is: <% echo "comment1"; # comment1 %> <% echo "comment2"; // comment2 %> sorry for my bad english (i'm italian). hope this is useful best regards Antonio Bonifati --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8203

« previous php.dev (#41849) next »