Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93731 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21702 invoked from network); 2 Jun 2016 19:49:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jun 2016 19:49:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=bobwei9@hotmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=bobwei9@hotmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain hotmail.com designates 65.55.111.85 as permitted sender) X-PHP-List-Original-Sender: bobwei9@hotmail.com X-Host-Fingerprint: 65.55.111.85 blu004-omc2s10.hotmail.com Received: from [65.55.111.85] ([65.55.111.85:51791] helo=BLU004-OMC2S10.hotmail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 21/99-62101-EDD80575 for ; Thu, 02 Jun 2016 15:49:51 -0400 Received: from BLU436-SMTP19 ([65.55.111.72]) by BLU004-OMC2S10.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Thu, 2 Jun 2016 12:49:47 -0700 X-TMN: [cdLy46YmtjPYYe9V99IVzCejui0TNzNq] X-Originating-Email: [bobwei9@hotmail.com] Message-ID: Content-Type: text/plain; charset="windows-1252" MIME-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) In-Reply-To: <8f6fab85-07c1-b221-ba36-087ca6ed4024@fleshgrinder.com> Date: Thu, 2 Jun 2016 21:49:40 +0200 Content-Transfer-Encoding: quoted-printable References: <0A.C5.62101.1C860575@pb1.pair.com> <64cafa7a-2426-6c54-8e48-f060ab1edaf9@fleshgrinder.com> <7370db2d-b31d-1be9-1661-b028dee174a2@fleshgrinder.com> <2cd12c28-6118-ced9-d678-a84015d35b40@fleshgrinder.com> <8f6fab85-07c1-b221-ba36-087ca6ed4024@fleshgrinder.com> To: PHP internals X-Mailer: Apple Mail (2.3112) X-OriginalArrivalTime: 02 Jun 2016 19:49:44.0588 (UTC) FILETIME=[E93BB4C0:01D1BD07] Subject: Re: [PHP-DEV] Re: [RFC] [PRE-VOTE] Union types From: bobwei9@hotmail.com (Bob Weinand) > Am 02.06.2016 um 21:43 schrieb Fleshgrinder : >=20 > On 6/2/2016 9:40 PM, Bob Weinand wrote: >> is_numeric() is returning a boolean (that's the condition). $str+0 = does conditionally cast to int or float (whatever the string specifies). >>=20 >=20 > php -r 'var_dump("foo" + 0);' > int(0) >=20 > This is what I am referring too. Shouldn't this crap result in an = error? >=20 > is_numeric($x) || throw TypeError('no no'); >=20 > --=20 > Richard "Fleshgrinder" Fussenegger >=20 Oh, well=85 Better now? Bob=