Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89933 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55129 invoked from network); 30 Dec 2015 23:43:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Dec 2015 23:43:30 -0000 Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 209.85.160.177 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 209.85.160.177 mail-yk0-f177.google.com Received: from [209.85.160.177] ([209.85.160.177:34036] helo=mail-yk0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/08-51216-12C64865 for ; Wed, 30 Dec 2015 18:43:29 -0500 Received: by mail-yk0-f177.google.com with SMTP id a85so90991876ykb.1 for ; Wed, 30 Dec 2015 15:43:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=/VBMaT8MCaaIBIebEJSzLpjDm630f5gmFxn68/OjU38=; b=SrxqxzNyOLYNrU9sD0qTPADvVeeiAi9u9nZqPwUQ4onklkD9EWEyQxa4MA8+Xfq5Hd Hbrm5/oo7ZH80NpfEaDDj8KgOB/G2FA1YXeyxkHQspwKkQPFJzZDE7GgA8DaHkGlZWVs jvpxrODClpn4grXf0HBCKXBHOBCofZ8CefYGnHN24sUugKCzmYEml7ZOi5R5XZWKi2YI 50n1VWmGggf2zKJV2cfUXtJTn4agGQ/JyzSYDB2xiE41PIqmDugF60MUHZKweNBC3YpI JJSnUbOBG0op4roEaT4bns3gwnQowP6VO1/ZehvX4nG8wM/OeqEV2AlQMxZbScIS8Ngq fpUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=/VBMaT8MCaaIBIebEJSzLpjDm630f5gmFxn68/OjU38=; b=OapyJZJWFqfqPKQ7lbvQPmilZhDc/iowtHO/5xwBeLJPAIaz5kUspGCWpUNCL1SX96 v1bZSkWLmIsDrGYpo3eIbRatw9rpbJgQZaDfy53Pq0l2CLUauPNNmto+09uvqpHCvpwV hBkXPOQGf+VzgbCVWKP9ttFC7hzgZhO5j7sGvpgWjnZTAIQoP08TTeGZkctIjmTaqLsz mo2WVV07bRzeUpF/w65p8mVWdrQNZCXxXYYUJP4WvRbf1Jb/xNlZHj5rOcKWtSmsmD5G YiROMlVT6ZbO5L1AtL8Sxma2AkwfqAA9jB/Doa2867uW+XnWEL3nBNAiIoHL4pMRYL3p L35Q== X-Gm-Message-State: ALoCoQnWDTsjMHbI4BXynuQfFOXYzUTSqLEYOexA+3ueQ3CAn0wYKA1T+mIcAqcGDmGEYQLpE6N3pfQ0lp3YsrNLhENiPzbCwQ== MIME-Version: 1.0 X-Received: by 10.129.135.7 with SMTP id x7mr49307266ywf.95.1451519005911; Wed, 30 Dec 2015 15:43:25 -0800 (PST) Received: by 10.37.79.213 with HTTP; Wed, 30 Dec 2015 15:43:25 -0800 (PST) X-Originating-IP: [78.149.9.115] In-Reply-To: References: Date: Wed, 30 Dec 2015 23:43:25 +0000 Message-ID: To: Davey Shafik Cc: Thomas Punt , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Number Format Separator From: danack@basereality.com (Dan Ackroyd) On 30 December 2015 at 23:00, Davey Shafik wrote: > how will settype($string, int|float), intval(), floatval(), is_numeric() > and ctype_digit() work with this change? My understanding is that those functions will continue to work as they do currently. The numeric literals are resolved by the compiler into numbers when the code is compiled, so there will be no difference. i.e. this RFC does not affect PHP at runtime at all, only the compile step. > What will var_dump() etc. show? var_dump(1_000_000) will have the same output as var_dump(1000000) > there should be an explicit way to support "1_000_000" => (int) 1_000_000. This > should be part of the RFC. I don't think it should be part of this RFC. That sounds like a completely different RFC, or is covered by NumberFormatter::parse(). cheers Dan