Doc #65347 [Opn->Nab]: Comments should be nestable
| From: | bjori@php.net | Date: | Fri, 26 Jul 2013 22:50:22 +0000 |
| Subject: | Doc #65347 [Opn->Nab]: Comments should be nestable | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-10121@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65347&edit=1
ID: 65347
Updated by: bjori@php.net
Reported by: TorrAB at Yahoo dot com
Summary: Comments should be nestable
-Status: Open
+Status: Not a bug
Type: Documentation Problem
Package: *General Issues
Operating System: WindowsXP
PHP Version: 5.4.17
Block user comment: N
Private report: N
New Comment:
Seriously?
Its documented on the page he linked to.
"'C' style comments end at the first */ encountered. Make sure you don't nest
'C'
style comments. It is easy to make this mistake if you are trying to comment out
a large block of code."
Previous Comments:
------------------------------------------------------------------------
[2013-07-26 22:43:07] yohgaki@php.net
You may escape comment strings as follows.
<?php
/* aa \/* bb *\/ cc*/
echo 9999;
?>
It would be easy job for smart editors.
However, it seems this is not documented.
------------------------------------------------------------------------
[2013-07-26 18:53:11] TorrAB at Yahoo dot com
Description:
------------
---
From manual page: http://www.php.net/language.basic-syntax.comments
---
Comments should be nestable:
/*some code being bypassed /*comment: watch out for 0.*/more code bypassed*/
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65347&edit=1