Yeah because /* */ has a clear end where // and # doesn't.

- S

On 8 Jul 2010, at 12:50, "jvlad" <d...@yandex.ru> wrote:

>> 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 
> 
> 
> 
> -- 
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to