Re: comment followed by ?> fails to parse
| From: | Kevin Stone | Date: | Tue, 28 May 2002 21:01:44 +0000 |
| Subject: | Re: comment followed by ?> fails to parse | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-99562@lists.php.net to get a copy of this message | ||
Exactly.. it doesn't seem to make any sense. Esspecially since it's such as
absolutely incredibly undeniably easy thing to check for. :) If the code
doesn't end with an uncommented ?> then just parse the code as text. That's
what it does anyway so why catch commented code at all?
----- Original Message -----
From: "Johnson, Kirk" <kjohnson@zootweb.com>
To: <php-general@lists.php.net>
Sent: Tuesday, May 28, 2002 2:55 PM
Subject: RE: [PHP] comment followed by ?> fails to parse
> 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
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>