PHP 4.0 Bug #5123: Php 4.0 recognize 'php end tag' inside a string in a commented line...
| From: | an at cerca dot com | Date: | Mon, 19 Jun 2000 12:04:53 +0000 |
| Subject: | PHP 4.0 Bug #5123: Php 4.0 recognize 'php end tag' inside a string in a commented line... | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-21720@lists.php.net to get a copy of this message | ||
From: an@cerca.com
Operating system: Linux RH 6.1 Kernel 2.2.12-20
PHP version: 4.0.0 Release
PHP Bug Type: Scripting Engine problem
Bug description: Php 4.0 recognize 'php end tag' inside a string in a commented line...
<?php
/* $s = "this is OK ?>"; */
// $s = "commented text ?>";
# $s = "commented text2 ?>";
echo "hello";
?>
Try to execute this snippet...
Chars "?>" after the text "commented text" are assumed as an end tag of PHP
scripting code.
Rest of the code is displayed as HTML code.
This not occurs if lines are commented with /*...*/
Thank you
Antonello