Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67306 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48496 invoked from network); 5 May 2013 07:57:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 May 2013 07:57:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.53 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.219.53 mail-oa0-f53.google.com Received: from [209.85.219.53] ([209.85.219.53:50853] helo=mail-oa0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 00/61-33933-78016815 for ; Sun, 05 May 2013 03:57:51 -0400 Received: by mail-oa0-f53.google.com with SMTP id g12so81752oah.40 for ; Sun, 05 May 2013 00:55:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=csz3SRUS9sIg7bcfz6zWjkqGZeZJ/5/NL7bTahhk30Y=; b=qkjYzAMgiuUkZqmoiMd585kbCc2K1aofcsYtCJY3olxV0fnXxe14howAbSTGKdg5PK Cqm6UyCwFleqXItC1+XMTPZkkZ+sg8pP3UxjXrUZ9QdYE04PK9G49smFRrg1FfXMEyYw 3oJDkU3H/yRhZiKcy7zioFG48kfatX3gRUZjWB41jgk8Sm0MmaMxy+V2WViGR9ycgk07 PawKViChNopc0fA7hDY9RMVrV9ZlJKKI/KWe7STMZiZ2hIuB/8zWI/nHsmreZLKI9K3L t/3W0R9x29DctAJox60mq76ykmjM++JP6iohtl4d8XHBJETLXfokPA64fxV35Ab+JShk Z/Pw== MIME-Version: 1.0 X-Received: by 10.182.105.227 with SMTP id gp3mr4324590obb.81.1367740548248; Sun, 05 May 2013 00:55:48 -0700 (PDT) Received: by 10.182.49.136 with HTTP; Sun, 5 May 2013 00:55:48 -0700 (PDT) In-Reply-To: <1367681473.95445.YahooMailNeo@web120904.mail.ne1.yahoo.com> References: <1367681473.95445.YahooMailNeo@web120904.mail.ne1.yahoo.com> Date: Sun, 5 May 2013 09:55:48 +0200 Message-ID: To: Oleku Konko Cc: "php-internals@lists.php.net" , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e013a051085f9eb04dbf3e97b Subject: Re: [PHP-DEV] Scalar Type Casting Magic Methods From: nikita.ppv@gmail.com (Nikita Popov) --089e013a051085f9eb04dbf3e97b Content-Type: text/plain; charset=ISO-8859-1 On Sat, May 4, 2013 at 5:31 PM, Oleku Konko 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 --089e013a051085f9eb04dbf3e97b--