Re: Proposed changes to PHP language

From: Date: Wed, 06 Mar 2013 14:50:56 +0000
Subject: Re: Proposed changes to PHP language
References: 1 2  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
This item
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.

StdClass Already do that!!!!


2013/3/6 Steve Clay <[email protected]>

> 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.
>
>
>      3. Parse body of PUT request in the same manner as it's done for POST
>>
>
> There are arguments for/against here: https://bugs.php.net/bug.php?**
> id=55815 <https://bugs.php.net/bug.php?id=55815>
>
>
>      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/
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
<a href="
http://cwconnect.computerworld.com.br/profile_view.aspx?customerid=alexandreandrade"><img
src="
http://cwconnect.computerworld.com.br/businesscard.aspx?customerid=alexandreandrade"
border="0" alt="Join Me at CW Connect!"></a>


Thread (8 messages)

« previous php.internals (#66492) next »