[PHP-DEV] Bug #978: '//' comments don't work correctly? From: auke <email protected>
Date: 12/05/98

From: auke <email protected>
Operating system: debian 2.0
PHP version: 3.0.5
PHP Bug Type: Parser error
Bug description: '//' comments don't work correctly?

<?php
   echo "test<br>";
   // echo "blabla ?>";
   echo "this will not be executed";
?>

This script sees the '?>' in the outcommented string as the end of the php code. I'm not sure, but this looks incorrect to me (or at least I hope it's incorrect :)

When using /* .. */ style comments everything works as advertized :)

regards,
Auke van Slooten

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>