Re: Bug? ... <? ?> and commenting them out

From: Date: Wed, 15 Sep 2004 15:48:52 +0000
Subject: Re: Bug? ... <? ?> and commenting them out
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-196745@lists.php.net to get a copy of this message
From: "Stefan" <stefan@webreeze.de>
i've the dump feeling there's a bug in the parser (or in my mind =) since i tried to commenting out some code, containing <? ... ?>.
http://us4.php.net/manual/en/language.basic-syntax.comments.php Quote:The one-line comment styles actually only comment to the end of the line or the current block of PHP code, whichever comes first. This means that HTML code after // ?> WILL be printed: ?> skips out of the PHP mode and returns to HTML mode, and // cannot influence that. If asp_tags configuration directive is enabled, it behaves the same with // %>. Although maybe it should say "even if ?> is within a string" to clear up any confusion? ---John Holmes...

« previous php.general (#196745) next »