PHP 4.0 Bug #7024 Updated: Question Mark causes a parse error if is on a line commented with //
| From: | sniper@php.net | Date: | Sun, 29 Oct 2000 03:16:27 +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-36292@lists.php.net to get a copy of this message | ||
ID: 7024
Updated by: sniper
Reported By: maxim@maxim.cx
Status: Closed
Bug Type: Scripting Engine problem
Assigned To:
Comments:
I can not reproduce this either...If this 'bug' still exists in PHP4.0.3pl1
reopen this bug report.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-10-05 17:56:05] stas@php.net
Could not reporoduce on 4.0.3RC2. Could you please provide full reproducing script?
---------------------------------------------------------------------------
[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