Re: Bug #14651: PHP close tag (?>) in a comment acts as a close; this did not happen in 4.0.x

From: Date: Fri, 21 Dec 2001 21:08:27 +0000
Subject: Re: Bug #14651: PHP close tag (?>) in a comment acts as a close; this did not happen in 4.0.x
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-74741@lists.php.net to get a copy of this message
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@m2wh.com 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 mmc> 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@infonet.ee GSM : (+372) 56491109

« previous php.dev (#74741) next »