Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58817 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84932 invoked from network); 9 Mar 2012 12:37:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Mar 2012 12:37:09 -0000 Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qy0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:65450] helo=mail-qy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F1/5C-10820-479F95F4 for ; Fri, 09 Mar 2012 07:37:08 -0500 Received: by qcmt36 with SMTP id t36so1184872qcm.29 for ; Fri, 09 Mar 2012 04:37:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=PU6ZYblf9wT4PMbA63N0R0+/jSsdSU4n6kK6riUEbbc=; b=bsFd1lq3lPiNIJ0J4+BzUxNtC80qzezQ7sQ3dZ3a3mHfS9MxXWBJV0mJ0u27/IH7tp kV1RUVl54f3LZoSZ12+e30NbaOc+J8U3Jwp4iSWi4um9QMJP8a866zAEK7mrJ6pYO28w 46tkB55Jm1NZpJas511qj++7pydX0a6sbv1qfyWjWBvNf0o9f9SvZL9zv/zJXFSs0TK7 6b9vFg/5PTU8OSVXFI0soJOO5U6AVyqECOf4I8EDjUMhzfP7MUOI7vYN/Lo40yq+Xnsa aq04LvvX/6zStfX1C0O+2nwwBvHsbI4fGnKYyMjQMLr9p9arC2WXBq04XmIA/VbyzVdS hm2g== MIME-Version: 1.0 Received: by 10.224.205.130 with SMTP id fq2mr743893qab.53.1331296625412; Fri, 09 Mar 2012 04:37:05 -0800 (PST) Received: by 10.229.49.74 with HTTP; Fri, 9 Mar 2012 04:37:05 -0800 (PST) In-Reply-To: References: Date: Fri, 9 Mar 2012 07:37:05 -0500 Message-ID: To: Lazare Inepologlou Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [POC - Patch] Scalar Type Hinting - A-La zend_parse_parameters From: ircmaxell@gmail.com (Anthony Ferrara) > (Now, it would be nice to have another RFC about custom object casting to > int, float and bool...) You mean like https://wiki.php.net/rfc/object_cast_to_types which is still in draft? Note that __toBool would be problematic, since it would be called if the object was used in an if statement, which could yield some very strange results if it returned false (it would break the existing semantics about how we can use if statements to determine if the type is populated)... Anthony