Re: // ?>

From: Date: Wed, 05 Dec 2007 01:46:31 +0000
Subject: Re: // ?>
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-265460@lists.php.net to get a copy of this message
On 04/12/2007, Kevin Schmeichel <schmeic-php@lovo.org> wrote: > > Here's some unexpected behavior: > > <?php > // ?> what? > ?> > > This will output "what?" - I expected no output, as is the case if the > inline comment was a /* */ comment. Is this a bug? That is because the PHP parser stops the comment on the end of a php tag ("?>") or new line, that is not a bug. Kevin > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Best Regards Cesar D. Rodas http://www.cesarodas.com http://www.thyphp.com http://www.phpajax.org Phone: +595-961-974165

« previous php.general (#265460) next »