Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80195 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57129 invoked from network); 5 Jan 2015 18:23:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jan 2015 18:23:07 -0000 Authentication-Results: pb1.pair.com header.from=pencap@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pencap@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.178 as permitted sender) X-PHP-List-Original-Sender: pencap@gmail.com X-Host-Fingerprint: 209.85.213.178 mail-ig0-f178.google.com Received: from [209.85.213.178] ([209.85.213.178:61683] helo=mail-ig0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E6/67-21693-A86DAA45 for ; Mon, 05 Jan 2015 13:23:07 -0500 Received: by mail-ig0-f178.google.com with SMTP id b16so2148399igk.5 for ; Mon, 05 Jan 2015 10:23:03 -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=a8rSFau+eLKiRSEx/CXrIvC3KDwupXjqPF0CF+MOeyw=; b=xaqM1jZM/Zf0UljtVJh6fZpTj62KI67fS+JgsGteUqLq0JJobPiKgzTVV1REkLEfzt YA5EvF5bZ8q502YNgDPGjST3fejMamVC8VyrirBRaiYwYKKFhhH1A+h5j39zWTnzGKtc 6t0xNZjAN36hmtSlwS0fxFrw6EfSwDV7TLLRfrAl6KwAcyY+dV49BVbY3CMsxYPK5I5E vpEdKWKv6bzaGb2baiRDfIyhSoUa3P/MXUUuIR9pOZQsEVy3DqYVroohsqZrV7PxdRsy a8Hi467YywjwwRp/xNpWlC1QoXAh3lLUKwvb2h6IehE3rcGNzCwp4EqfsteBrppKmZRI GIjg== MIME-Version: 1.0 X-Received: by 10.42.54.5 with SMTP id p5mr19870010icg.37.1420482182982; Mon, 05 Jan 2015 10:23:02 -0800 (PST) Received: by 10.50.248.45 with HTTP; Mon, 5 Jan 2015 10:23:02 -0800 (PST) In-Reply-To: References: Date: Mon, 5 Jan 2015 12:23:02 -0600 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: multipart/alternative; boundary=90e6ba3fd72ded32c7050bebc7a6 Subject: Re: [PHP-DEV] [RFC] Remove hex support in numeric strings From: pencap@gmail.com (Mike Willbanks) --90e6ba3fd72ded32c7050bebc7a6 Content-Type: text/plain; charset=UTF-8 On Sat, Jan 3, 2015 at 1:55 PM, Nikita Popov wrote: > Hi internals! > > I'd like to propose removing support for hexadecimal strings in the > is_numeric_string() function, in order to achieve consistency with ordinary > integer and float casts: > > https://wiki.php.net/rfc/remove_hex_support_in_numeric_strings > > This change drops a WTF in our conversion semantics and should have low BC > impact. > > HUGE +1 here. We commonly run into this WTF and becomes a cause for all sorts of logic errors :) --90e6ba3fd72ded32c7050bebc7a6--