Single-line comment problem
| From: | Shijiang | Date: | Thu, 08 Jul 2010 02:26:03 +0000 |
| Subject: | Single-line comment problem | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-49011@lists.php.net to get a copy of this message | ||
Hi
I'm not sure whether it's really a bug.
The following sample code will emit a parse error.
<?php
if(true){
//echo '<?php date('Y-m-d H:i:s'); ?>';
echo 'afafa';
}
?>
The parser treate the PHP tag within the commented line as a normal tag .