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
 [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: Thu Apr 25 19:01:33 2024 UTC