Re: Scalar Type Casting Magic Methods
| From: | Nikita Popov | Date: | Sun, 05 May 2013 07:55:48 +0000 |
| Subject: | Re: Scalar Type Casting Magic Methods | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-67306@lists.php.net to get a copy of this message | ||
On Sat, May 4, 2013 at 5:31 PM, Oleku Konko <oleku.konko@yahoo.com> wrote:
> Quick Observations :
>
> I had this issue (
>
> http://stackoverflow.com/questions/16375331/increment-on-tostring )
> and
> it kept me thinking why no error was returned, then i stumble up this RFC :
> https://wiki.php.net/rfc/object_cast_to_types
>
> The patch is basic , simple and working and it should
> be seriously considered in 5.5. I want to believe if
> https://github.com/php/php-src/pull/334 can make it to PHP 5.5
> then we
> should give object_cast_to_types the same opportunity except they are
> string objections why it should not be so
>
This can't go into PHP 5.5 anymore as we're already past feature freeze.
Nikita