Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58457 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4044 invoked from network); 2 Mar 2012 07:16:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Mar 2012 07:16:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=lists@rotorised.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lists@rotorised.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain rotorised.com from 203.88.115.241 cause and error) X-PHP-List-Original-Sender: lists@rotorised.com X-Host-Fingerprint: 203.88.115.241 ironport1-mx.cbr1.mail-filtering.com.au Received: from [203.88.115.241] ([203.88.115.241:64437] helo=ironport1-mx.cbr1.mail-filtering.com.au) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 67/15-11220-1C3705F4 for ; Fri, 02 Mar 2012 02:16:18 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnUHAJtyUE+va78L/2dsb2JhbABDgxSyIoF9AQEFOEARCxgJFg8JAwIBAgFFEwgBAYgBuB6MQoMiBJscjSY X-IronPort-AV: E=Sophos;i="4.73,515,1325422800"; d="scan'208";a="596655478" Received: from ju001lcs02.dfw.the-server.net.au (HELO ju001lcs02.dfw.the-server.com.au) ([175.107.191.11]) by ironport1-mta.cbr1.mail-filtering.com.au with ESMTP; 02 Mar 2012 18:16:13 +1100 Received: from [124.191.162.147] (helo=[192.168.0.12]) by ju001lcs02.dfw.the-server.com.au with esmtpa (Exim 4.69) (envelope-from ) id 1S3Mip-003fYg-86 for internals@lists.php.net; Fri, 02 Mar 2012 18:16:12 +1100 Message-ID: <4F5073C4.8050102@rotorised.com> Date: Fri, 02 Mar 2012 17:16:20 +1000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [POC Patch] Scalar Type Hinting/Casting - Proof Of Concept From: lists@rotorised.com (Ryan McCue) Anthony Ferrara wrote: > foo(1); // int(1) > foo("1"); // int(1) > foo(1.5); // int(1) > foo("foo"); // E_RECOVERABLE_ERROR - Expected integer > foo(array()); // E_RECOVERABLE_ERROR Double-checking, but this is different to normal typecasting, isn't it? If so, it might be a bit confusing using the typecasting syntax. -- Ryan McCue