php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7024 Question Mark causes a parse error if is on a line commented with //
Submitted: 2000-10-04 21:19 UTC Modified: 2000-10-28 23:16 UTC
From: maxim at maxim dot cx Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.1pl2 OS: Linux RedHat 6.2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: maxim at maxim dot cx
New email:
PHP Version: OS:

 

 [2000-10-04 21:19 UTC] maxim at maxim dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-05 17:56 UTC] stas@php.net
Could not reporoduce on 4.0.3RC2. Could you please provide full reproducing script?
 [2000-10-28 23:16 UTC] sniper@php.net
I can not reproduce this either...If this 'bug' still exists in PHP4.0.3pl1
reopen this bug report. 

--Jani

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 13 01:00:02 2026 UTC