php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #60835 __halt_compiler is a keyword (not in the manual)
Submitted: 2012-01-21 21:40 UTC Modified: 2012-01-21 22:07 UTC
From: 0gb dot us at 0gb dot us Assigned: frozenfire (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: none
Private report: No CVE-ID: None
 [2012-01-21 21:40 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-01-21 21:42 UTC] 0gb dot us at 0gb dot us
Editing package type.
 [2012-01-21 21:42 UTC] 0gb dot us at 0gb dot us
-Package: *Programming Data Structures +Package: Documentation problem
 [2012-01-21 22:07 UTC] frozenfire@php.net
Automatic comment from SVN on behalf of frozenfire
Revision: http://svn.php.net/viewvc/?view=revision&revision=322547
Log: Added __halt_compiler to list of language constructs. Closes bug #60835.
 [2012-01-21 22:07 UTC] frozenfire@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: frozenfire
 [2012-01-21 22:07 UTC] frozenfire@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 16 10:01:31 2024 UTC