4.0.5 Comments change (leads to inappropriate parse error based on contents of comments)
| From: | Steven Roussey | Date: | Thu, 05 Apr 2001 00:54:32 +0000 |
| Subject: | 4.0.5 Comments change (leads to inappropriate parse error based on contents of comments) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-50893@lists.php.net to get a copy of this message | ||
Hi,
I found our problem. In 4.0.5, comments seem to be parsed differently. We
have ASP style tags enabled so we can use %> as well as ?>. But we had
comments like this:
<?
//asdfasdf%>asdfasdf
echo('');
?>
< 4.0.5 would ignore the whole line. 4.0.5 still parses it for open and
close tags. The lines above get handled differently from 4.0.4 to 4.0.5. It
is hard to track if the comment is inside a class, because there is no parse
error until the end of the file, and the code is not spit out like HTML (as
in the example above) because it is compiling the file. I think this is a
bug. We can clean up our code to fix it (and will), but....
Sincerely,
Steven Roussey
Network54.com
http://network54.com/?pp=e