Doc #60835 [Opn]: __halt_compiler is a keyword (not in the manual)
| From: | 0gb dot us at 0gb dot us | Date: | Sat, 21 Jan 2012 21:42:35 +0000 |
| Subject: | Doc #60835 [Opn]: __halt_compiler is a keyword (not in the manual) | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-7803@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60835&edit=1
ID: 60835
User updated by: 0gb dot us at 0gb dot us
Reported by: 0gb dot us at 0gb dot us
Summary: __halt_compiler is a keyword (not in the manual)
Status: Open
Type: Documentation Problem
-Package: *Programming Data Structures
+Package: Documentation problem
Operating System: none
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Editing package type.
Previous Comments:
------------------------------------------------------------------------
[2012-01-21 21:40:57] 0gb dot us at 0gb dot us
Description:
------------
---
From manual page: http://www.php.net/reserved.keywords
---
I was just going to post a note, but I think this might qualify as missing documentation?
"Missing documentation. Also, report that as a bug. "
http://php.net/manual/add-note.php?sect=reserved.keywords&redirect=http://www.php.net/manual/en/reserved.keywords.php
http://php.net/manual/en/function.halt-compiler.php
http://php.net/manual/en/reserved.keywords.php
I think the __halt_compiler() function should be listed in the list of PHP keywords. The name
"__halt_compiler" cannot be used to name any function, class, constant, or namespace, just
like other keywords that look like functions, such as isset() and print(). Trying will result in an
unexpected T_HALT_COMPILER token.
Test script:
---------------
__halt_compiler() isn't listed on this page: http://php.net/manual/en/reserved.keywords.php
Expected result:
----------------
__halt_compiler() should be listed on this page: http://php.net/manual/en/reserved.keywords.php
Actual result:
--------------
__halt_compiler() isn't listed on this page: http://php.net/manual/en/reserved.keywords.php
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60835&edit=1