php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #72444 Documentation doesn't reflect loosening of reserved word restrictions
Submitted: 2016-06-17 16:02 UTC Modified: 2016-06-17 17:42 UTC
From: junk at talpa dot plus dot com Assigned: cmb (profile)
Status: Closed Package: Documentation problem
PHP Version: 7.0.7 OS: ALL
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: junk at talpa dot plus dot com
New email:
PHP Version: OS:

 

 [2016-06-17 16:02 UTC] junk at talpa dot plus dot com
Description:
------------
---
From manual page: http://www.php.net/reserved.keywords
---

"You cannot use any of the following words as constants, class names, function or method names".

As of PHP 7 however - these words *can* be used as constants and method names as per http://php.net/manual/en/migration70.other-changes.php

Test script:
---------------
Visit http://www.php.net/reserved.keywords

Expected result:
----------------
The page reflects the situations in which reserved words cannot be used with appropriate note about 7.0 vs. pre-7.0

Actual result:
--------------
The page reflects out of date information which isn't accurate with the current release of PHP.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-06-17 17:41 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=339385
Log: Fix #72444: Documentation doesn't reflect loosening of reserved word restrictions
 [2016-06-17 17:42 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2016-06-17 17:42 UTC] cmb@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.


 [2020-02-07 06:07 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=0823fabeb11f26761b8862fc431ec5616b317cf8
Log: Fix #72444: Documentation doesn't reflect loosening of reserved word restrictions
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 20:00:02 2026 UTC