PHP 4.0 Bug #6329: Detecting end tag in a comment.
| From: | patrick at music-images dot nl | Date: | Thu, 24 Aug 2000 09:27:32 +0000 |
| Subject: | PHP 4.0 Bug #6329: Detecting end tag in a comment. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-30484@lists.php.net to get a copy of this message | ||
From: patrick@music-images.nl
Operating system: WINDOWS NT 4.0 SP 5
PHP version: 4.0.1pl2
PHP Bug Type: Scripting Engine problem
Bug description: Detecting end tag in a comment.
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.