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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 00:01:29 2024 UTC