Re: Single-line comment problem
| From: | jvlad | Date: | Thu, 08 Jul 2010 19:50:58 +0000 |
| Subject: | Re: Single-line comment problem | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-49013@lists.php.net to get a copy of this message | ||
> Parsing ends with ?> regardless if its a comment or not but its not
> context sensitive. It can't understand that its within a string.
>
> - S
Not exactly, it's only // comment style does not comment the tag while /* */
does.
The following script outputs its 'afafa':
<?php
if(true){
/* echo '<?php date('Y-m-d H:i:s'); ?>'; */
echo 'afafa';
}
?>
-j