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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 00:01:32 2024 UTC