Re: Proposed changes to PHP language
| From: | Steve Clay | Date: | Wed, 06 Mar 2013 14:42:07 +0000 |
| Subject: | Re: Proposed changes to PHP language | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-66491@lists.php.net to get a copy of this message | ||
On 3/6/13 7:48 AM, Max Romanovsky wrote:
2. Introduce base class for all PHP classes. E.g. Object. It would help
in type hinting and allow to add new common methods without any magic.
Type-hinting for non-stdClass objects would be handy.
Base class is like mutable Object.prototype in JS. I'm against it.
There are arguments for/against here: https://bugs.php.net/bug.php?id=558153. Parse body of PUT request in the same manner as it's done for POST
compatibility. Otherwise $_REQUEST handling should be aware of new array
with PUT data.
For BC, PUT data should not be injected into existing vars.
Steve Clay
--
http://www.mrclay.org/