PHP 4.0 Bug #8203: not proper one-line comment handling in <% %> tags
| From: | antonio dot b at infinito dot it | Date: | Tue, 12 Dec 2000 05:22:52 +0000 |
| Subject: | PHP 4.0 Bug #8203: not proper one-line comment handling in <% %> tags | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-40921@lists.php.net to get a copy of this message | ||
From: antonio.b@infinito.it
Operating system: Red Hat Linux 6.2
PHP version: 4.0.3pl1
PHP Bug Type: Scripting Engine problem
Bug description: not proper one-line comment handling in <% %> tags
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
--
Edit Bug report at: http://bugs.php.net/?id=8203&edit=1