Doc #71578 [Opn->Nab]: object, mixed and numeric are not reserved words
| From: | cmb@php.net | Date: | Fri, 12 Feb 2016 21:16:30 +0000 |
| Subject: | Doc #71578 [Opn->Nab]: object, mixed and numeric are not reserved words | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-13187@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71578&edit=1
ID: 71578
Updated by: cmb@php.net
Reported by: david at grudl dot com
Summary: object, mixed and numeric are not reserved words
-Status: Open
+Status: Not a bug
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
The documentation already states:
| Some of the words are reserved to enable future PHP features
| without breaking backward compatibility.
So this is "not a bug".
Previous Comments:
------------------------------------------------------------------------
[2016-02-12 19:32:55] bwoebi@php.net
They are reserved, but not prohibited from usage.
The emphasis is on *reserved*; that it is strongly advised to not use them, as it is not that
unlikely that future code will prohibit its usage.
------------------------------------------------------------------------
[2016-02-12 17:33:45] david at grudl dot com
And *resource* too
------------------------------------------------------------------------
[2016-02-12 17:32:08] david at grudl dot com
Description:
------------
Words *object, mixed, numeric* are listed as reserved word in documentation http://php.net/manual/en/reserved.other-reserved-words.php,
but they are not reserved https://github.com/php/php-src/blob/d1b777bd992525ced913a033bd7fff9490614f52/Zend/zend_compile.c#L151
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71578&edit=1