Justtechjobs.com Find a programming school near you






Online Campus Both


php-developer-list | 2001122

Re: [PHP-DEV] Bug #14651: PHP close tag (?>) in a comment acts as a close; this did not happen in 4.0.x From: Andrew Sitnikov (sitnikov <email protected>)
Date: 12/21/01

Hello mike,

This is not bug, this is features:
http://www.php.net/manual/en/language.basic-syntax.comments.php
The "one-line" comment styles actually only comment to the end of the line or the current block of PHP code,
whichever comes first.

Please mark this bug as bogus.

mmc> From: mike <email protected>
mmc> Operating system: FreeBSD 3.4-REL
mmc> PHP version: 4.1.0
mmc> PHP Bug Type: Reproducible crash
mmc> Bug description: PHP close tag (?>) in a comment acts as a close; this did not happen in 4.0.x

mmc> In 4.0.x, you could do something like:

mmc> <?
mmc> echo "hi"; //<does this echo hi?>
?>>

mmc> and it would work fine.

mmc> In 4.1.0 this causes a parse error on the last line of the script.

Best regards,
 Andrew Sitnikov
 e-mail : sitnikov <email protected>
 GSM : (+372) 56491109

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>