Doc #72444 [NEW]: Documentation doesn't reflect loosening of reserved word restrictions
| From: | junk at talpa dot plus dot com | Date: | Fri, 17 Jun 2016 16:02:59 +0000 |
| Subject: | Doc #72444 [NEW]: Documentation doesn't reflect loosening of reserved word restrictions | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-13549@lists.php.net to get a copy of this message | ||
From: junk at talpa dot plus dot com
Operating system: ALL
PHP version: 7.0.7
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Documentation doesn't reflect loosening of reserved word restrictions
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.
--
Edit bug report at https://bugs.php.net/bug.php?id=72444&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72444&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72444&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72444&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=72444&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=72444&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=72444&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=72444&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=72444&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=72444&r=support
Expected behavior: https://bugs.php.net/fix.php?id=72444&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=72444&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=72444&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=72444&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72444&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=72444&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=72444&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=72444&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72444&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=72444&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=72444&r=mysqlcfg