Req #60872 [Wfx]: server-side comment tag
Edit report at https://bugs.php.net/bug.php?id=60872&edit=1
ID: 60872
Updated by: rasmus@php.net
Reported by: mantoxpub at people dot it
Summary: server-side comment tag
Status: Wont fix
Type: Feature/Change Request
Package: Scripting Engine problem
Operating System: Linux
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Sorry, this isn't going to happen. We finally got rid of the ASP tags in PHP. We
are not re-introducing them.
Previous Comments:
------------------------------------------------------------------------
[2012-01-28 00:12:13] 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-26 10:04:39] 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-26 03:57:45] carloschilazo at gmail dot com
Why not use
/*
comment
*/
or // comment
?
------------------------------------------------------------------------
[2012-01-24 19:16:02] 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. --%>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60872&edit=1
Thread (5 messages)