php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11193 The incorrect priority for comments
Submitted: 2001-05-30 08:57 UTC Modified: 2001-05-30 11:27 UTC
From: vgo at nrd dot lt Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.0.5 OS: Windows 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: vgo at nrd dot lt
New email:
PHP Version: OS:

 

 [2001-05-30 08:57 UTC] vgo at nrd dot lt
The code:
-------- Cut -------------
<?php
...
//?>  error_msg += "TEST";<?
...
?>
-------- Cut -------------

The result is:
  error_msg += "TEST";

That means that comment sign "//" was suppressed when ?> found. So that means that <?...?> has higher priority ???
Either this is a bug or lack of documentation but n my opinion in the comment block can be anything except comment ending statement ... 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-30 11:27 UTC] sniper@php.net
This is clearly said in manual:

http://www.php.net/manual/en/language.basic-syntax.comments.php


"The 'one-line' comment styles actually only comment to the 
end of the line or the current block of PHP code, whichever comes first."

--Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 11:01:36 2025 UTC