Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80128 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11677 invoked from network); 3 Jan 2015 23:17:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jan 2015 23:17:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.50 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.218.50 mail-oi0-f50.google.com Received: from [209.85.218.50] ([209.85.218.50:62484] helo=mail-oi0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 32/00-11248-C9878A45 for ; Sat, 03 Jan 2015 18:17:49 -0500 Received: by mail-oi0-f50.google.com with SMTP id x69so43862143oia.9 for ; Sat, 03 Jan 2015 15:17:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=W2G65IGMOB0GpRIhc1SieqxH7W2cKSHYYCqsGH1t30I=; b=Vjv4jCP8PGB7nsWzRHAU6jlD5nuaIhn09tMlu47j+S70PViqsQk/pR+y/4UE8Vv5pV hpQpdNevLLMvf85BAw/wDxzhhWWYxhlE3uFu9fAuMmfFtPL58PbCiMvYSBpegqBycGXu iJI+Y3em/hQryZRt7oWap3hWO5fUATBkYCWmT/BHgr8yb2h6zy127gLMCDWOl+MQAVxh IH0EHG+22mgYBxaG5f21rwx9ba9wQ7RoJH6qhIQ2n5lLrM/F/J3/iaX+Cd0M+a7RO5pn 7Ue3xOZp3ICV5ApH3kvBUhvfoEFaZWmnELSgwczTEWyhYovFVA9d9ZYEjvj4nD52l2+T Y58g== X-Received: by 10.202.177.130 with SMTP id a124mr13362468oif.46.1420327066154; Sat, 03 Jan 2015 15:17:46 -0800 (PST) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id x138sm27126177oie.8.2015.01.03.15.17.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 03 Jan 2015 15:17:45 -0800 (PST) Message-ID: <54A8788E.30905@gmail.com> Date: Sat, 03 Jan 2015 15:17:34 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Nikita Popov , PHP internals References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Remove hex support in numeric strings From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > 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. While I'm usually all for preserving BC in this case I think removing the inconsistency is better and the use case is weird enough that it makes little sense to implicitly support it. Given that we have options with both filter and hexdec _and_ casts do not support it, I think this RFC would do the right thing. -- Stas Malyshev smalyshev@gmail.com