ID: 6329
Updated by: sniper
Old-Status: Duplicate
Status: Closed
Bug Type: Scripting Engine problem
PHP Version: 4.0.1pl2
Assigned To: 

Previous Comments:

[2000-08-24 05:38:47] [EMAIL PROTECTED]
this is documented behavior for '//' and '#'
style comments, you might consider to use 
'/*...*/' instead in this case

it is done so that for example

<? echo $test; // just testing ?> 



[2000-08-24 05:27:32] [EMAIL PROTECTED]
I commented this line out with a // but after that ?> is interpreted as an end of 
script remark. Ofcourse this shouldn't happen, to my opinion in a comment nothing 
should be parsed.

// onLoad="Javascript:parent.main_view.location='<? echo $base_url . $search_page; 

the output will be:

';" ?>

But if I run:

/* onLoad="Javascript:parent.main_view.location='<? echo $base_url . $search_page; 
?>';" */

there will be no output.

I ran this through PHP in CGI mode. It does not happen to comments within /* */ 
comment markers.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to