PHP 4.0 Bug #7024 Updated: Question Mark causes a parse error if is on a line commented with //
| From: | Bug Database | Date: | Thu, 05 Oct 2000 21:56:05 +0000 |
| Subject: | PHP 4.0 Bug #7024 Updated: Question Mark causes a parse error if is on a line commented with // | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-34298@lists.php.net to get a copy of this message | ||
ID: 7024
Updated by: stas
Reported By: maxim@maxim.cx
Status: Feedback
Bug Type: Scripting Engine problem
Assigned To:
Comments:
Could not reporoduce on 4.0.3RC2. Could you please provide full reproducing script?
Previous Comments:
---------------------------------------------------------------------------
[2000-10-04 21:19:10] maxim@maxim.cx
I noticed that if you have a question mark in a commented line the parser gives you a parse error.
see here:
if ( $activate_arrows ) // Arrows Needed ?
{
...
}
I read bug reports prevousely posted about this issue,
but I insist:
I can understand "<?" and "?>" but in the above example I think it is more
then resonable to allow commented "?" since what I was (and i think many others still are)
trying to do is to comment the code with a human language, which is very important for the usability
of PHP.
Thank you for your attention.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7024