Re: [PHP] Bug? ... and commenting them out

2004-09-15 Thread John Holmes
From: "Stefan" <[EMAIL PROTECTED]>
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...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Bug? ... and commenting them out

2004-09-15 Thread Stefan
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 . The 
according code was something like ...

--- begin
//$xml = "";
--- end
the occured error is ...
--- begin
Parse error:  parse error, unexpected $ in uninteresting on line 
154
--- end

... where 154 the document's last line.
# for comment it out either, whereby /* ... */ works fine (as excepted). 
Seems like the parser doesn't parse the quotes in the statement, but 
parses the  tags. So  has an higher specifity than the 
comment itself.

PHP Version is 5.0.1. Can anybody reproduce the "problem" (deleting the 
line fixes it ;o), or find out, wheter ignoring the comment is the 
desired behaviour?

regards, Stefan Bolus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php