php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #60872 server-side comment tag
Submitted: 2012-01-24 19:16 UTC Modified: 2012-01-28 01:12 UTC
Votes:3
Avg. Score:2.3 ± 1.9
Reproduced:1 of 3 (33.3%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: mantoxpub at people dot it Assigned:
Status: Wont fix Package: Scripting Engine problem
PHP Version: Irrelevant OS: Linux
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: mantoxpub at people dot it
New email:
PHP Version: OS:

 

 [2012-01-24 19:16 UTC] mantoxpub at people dot it
Description:
------------
---
From manual page: http://www.php.net/language.basic-syntax.comments
---

what about supporting server-side comment tag?



Test script:
---------------
<%-- this is a server-side comment. --%>

Expected result:
----------------
(nothing :)

Actual result:
--------------
<%-- this is a server-side comment. --%>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-01-26 03:57 UTC] carloschilazo at gmail dot com
Why not use

/*
comment
*/

or // comment

?
 [2012-01-26 10:04 UTC] johannes@php.net
-Status: Open +Status: Wont fix
 [2012-01-26 10:04 UTC] johannes@php.net
As said you can duse // or /* */ comments. Extending the grammar by this forces people to learn more things without much benefit.
 [2012-01-28 00:12 UTC] mantoxpub at people dot it
The reason i'm asking is because this syntax is faster to write than:
<?php /* this is a server-side comment. */ ?>

Also it's supported by most server-side scripting languages (JSP, ASP).
 [2012-01-28 01:12 UTC] rasmus@php.net
Sorry, this isn't going to happen. We finally got rid of the ASP tags in PHP. We 
are not re-introducing them.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 05 02:01:35 2025 UTC