RE: [PHP] comment followed by ?> fails to parse
| From: | Ed Gorski | Date: | Tue, 28 May 2002 21:13:08 +0000 |
| Subject: | RE: [PHP] comment followed by ?> fails to parse | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-99568@lists.php.net to get a copy of this message | ||
Well it looks like they got half of it right by changing the /* <? code here ?> */ issue....
ed
At 03:06 PM 5/28/2002 -0600, Johnson, Kirk wrote:
Well, one thing I know for sure is that there are members of the PHP develpment team that monitor this list. Maybe one of them will clear this up for us ;) Kirk -----Original Message----- From: Ed Gorski [mailto:gorskie@spjc.edu] Sent: Tuesday, May 28, 2002 3:04 PM To: Kevin Stone; php-general@lists.php.net Subject: Re: [PHP] comment followed by ?> fails to parse From my experience the PHP parser acts much like the HTML parser in the fact that it doesn't give a damn about carriage returns.... ed At 03:01 PM 5/28/2002 -0600, Kevin Stone wrote:Exactly.. it doesn't seem to make any sense. Esspeciallysince it's such asabsolutely incredibly undeniably easy thing to check for.:) If the codedoesn't end with an uncommented ?> then just parse the codeas text. That'swhat 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'//' comment line,Which begs the question, why does PHP see a '?>' in abutJohnson, Kirk;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';-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpphp-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