Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93730 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18775 invoked from network); 2 Jun 2016 19:13:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jun 2016 19:13:32 -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.171 as permitted sender) X-PHP-List-Original-Sender: bobwei9@hotmail.com X-Host-Fingerprint: 65.55.111.171 blu004-omc4s32.hotmail.com Received: from [65.55.111.171] ([65.55.111.171:63819] helo=BLU004-OMC4S32.hotmail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6A/19-62101-B5580575 for ; Thu, 02 Jun 2016 15:13:32 -0400 Received: from BLU436-SMTP132 ([65.55.111.135]) by BLU004-OMC4S32.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Thu, 2 Jun 2016 12:13:29 -0700 X-TMN: [6F8A3RnqoJhmZL1wYRjKwcaVZcXa1cnC] 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: <7370db2d-b31d-1be9-1661-b028dee174a2@fleshgrinder.com> Date: Thu, 2 Jun 2016 21:13:23 +0200 CC: Andrea Faulds Content-Transfer-Encoding: 7bit References: <0A.C5.62101.1C860575@pb1.pair.com> <64cafa7a-2426-6c54-8e48-f060ab1edaf9@fleshgrinder.com> <7370db2d-b31d-1be9-1661-b028dee174a2@fleshgrinder.com> To: PHP internals X-Mailer: Apple Mail (2.3112) X-OriginalArrivalTime: 02 Jun 2016 19:13:27.0441 (UTC) FILETIME=[D78D7010:01D1BD02] Subject: Re: [PHP-DEV] Re: [RFC] [PRE-VOTE] Union types From: bobwei9@hotmail.com (Bob Weinand) > Am 02.06.2016 um 20:53 schrieb Fleshgrinder : > > On 6/2/2016 8:45 PM, Bob Weinand wrote: >> Done that, does it look better now? :-) >> > > Absolutely in my opinion, looks much simpler now. :) > >> only if actually numeric, the result of $str + 0 > > Shouldn't we use is_numeric_string() here? That's the internal function responsible for the conversion. Bob > -- > Richard "Fleshgrinder" Fussenegger >