PHP 4.0 Bug #7024: Question Mark causes a parse error if is on a line commented with //

From: Date: Thu, 05 Oct 2000 01:19:10 +0000
Subject: PHP 4.0 Bug #7024: 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-34229@lists.php.net to get a copy of this message
From: maxim@maxim.cx Operating system: Linux RedHat 6.2 PHP version: 4.0.1pl2 PHP Bug Type: Scripting Engine problem Bug description: Question Mark causes a parse error if is on a line commented with // 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.

« previous php.dev (#34229) next »