RE: [PHP] comment followed by ?> fails to parse

From: Date: Tue, 28 May 2002 20:55:47 +0000
Subject: RE: [PHP] comment followed by ?> fails to parse
Groups: php.general 
Request: Send a blank email to php-general+get-99561@lists.php.net to get a copy of this message
Which begs the question, why does PHP see a '?>' in a '//' comment line, but not in a multi-line comment, e.g., /* ?> */ ? > -----Original Message----- > From: Ed Gorski [mailto:gorskie@spjc.edu] > Sent: Tuesday, May 28, 2002 2:46 PM > To: Leotta Natalie (NCI/IMS); 'Jonathan Rosenberg'; Johnson, Kirk; > php-general@lists.php.net > Subject: RE: [PHP] comment followed by ?> fails to parse > > > No the parser sees the ?> after a // because it needs to see > when to quit > out (unlike traditional, compiled languages) but it won't > have this same > effect in a string literal..... > > ed

« previous php.general (#99561) next »