Re: 4.0.5 Comments change (leads to inappropriate parse error based on contents of comments)

From: Date: Thu, 05 Apr 2001 05:27:04 +0000
Subject: Re: 4.0.5 Comments change (leads to inappropriate parse error based on contents of comments)
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-50905@lists.php.net to get a copy of this message
This was fixed to be consistent with ?>. One line comments end at a new line or at a closing bracket (?> or %>) Andi At 05:54 PM 4/4/2001 -0700, Steven Roussey wrote:
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 -- 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 (#50905) next »