Scalar Type Casting Magic Methods
| From: | Oleku Konko | Date: | Sat, 04 May 2013 15:31:13 +0000 |
| Subject: | Scalar Type Casting Magic Methods | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-67304@lists.php.net to get a copy of this message | ||
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
Thanks
Oleku Konko