Doc #71578 [Com]: object, mixed and numeric are not reserved words

From: Date: Wed, 24 Feb 2016 14:12:47 +0000
Subject: Doc #71578 [Com]: object, mixed and numeric are not reserved words
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13213@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 Comment by: tpunt@php.net Reported by: david at grudl dot com Summary: object, mixed and numeric are not reserved words Status: Re-Opened Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant Assigned To: cmb Block user comment: N Private report: N New Comment: The patch did place mixed and numeric in the soft reservations - the svn diff just redacted it :) In any case, no concerns were raised so I've committed this now. Thanks. Previous Comments: ------------------------------------------------------------------------ [2016-02-24 14:10:00] tpunt@php.net Automatic comment from SVN on behalf of tpunt Revision: http://svn.php.net/viewvc/?view=revision&revision=338660 Log: Resolve doc bug #71578 ------------------------------------------------------------------------ [2016-02-22 10:42:38] cmb@php.net That might be best, Thomas, even though we'll have to keep an eye on changes to come. If there are no objections, I'll commit that in a few days. BTW: mixed and numeric are also soft reserved words. ------------------------------------------------------------------------ [2016-02-21 23:00:19] tpunt@php.net What about splitting the list into actual reserved words and soft reserved words? Patch diff: https://gist.github.com/tpunt/906fe83e8d91dd75eaed ------------------------------------------------------------------------ [2016-02-12 22:06:50] bwoebi@php.net It still is badly worded. Reading the whole: > These words cannot be used to name a class, interface or a trait. These words are also > prohibited from being used in namespaces. Some of the words are reserved to enable future PHP > features without breaking backward compatibility. It suggests that none of these words can be used currently, just that some of them don't have any use yet. It doesn't say that some of these can still be used, but is just not advised. ------------------------------------------------------------------------ [2016-02-12 21:16:26] cmb@php.net 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". ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=71578 -- Edit this bug report at https://bugs.php.net/bug.php?id=71578&edit=1

« previous php.doc.bugs (#13213) next »