Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60079 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87639 invoked from network); 17 Apr 2012 12:30:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Apr 2012 12:30:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=hartmut.holzgraefe@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=hartmut.holzgraefe@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.42 as permitted sender) X-PHP-List-Original-Sender: hartmut.holzgraefe@gmail.com X-Host-Fingerprint: 209.85.214.42 mail-bk0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:60454] helo=mail-bk0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 57/A3-03996-E726D8F4 for ; Tue, 17 Apr 2012 08:30:55 -0400 Received: by bkcje9 with SMTP id je9so5082886bkc.29 for ; Tue, 17 Apr 2012 05:30:51 -0700 (PDT) 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:x-enigmail-version:content-type :content-transfer-encoding; bh=4Jb7BpTPd58ViI+PDpcPSToPmJvYNpNncR/ruLoAvsc=; b=UBIJf5dEwV4w/SpqiIxTc/W5qEFGfHclIcPcqWR1cubmeunfEsgWrOvht9F8zBhjyF 2i/vBckCEf0kAevJcHEXubtPgJfUazjadso3eOtRyC+76ERIspF41duNOdUbFxlDQQ3f fuG082zlxmuqntbYJX9pjcigb07fTQUn+rsfus/WsjNgMSXN7PLkedb8MCpwj1XHDpVM q/csp0pXPLgmDhjLzSjpkBkcQn2kWXbHMvfmV+yxqjQI1dspDtYvCYzURdbZoFpuMsAC tR6qLY8hw2yDrSrcwM9Y9jr5GRRxqeAIZgcnuIHFD5Zc+SYXWenIfB3MX30urZnGvllf 6Lng== Received: by 10.204.156.216 with SMTP id y24mr4699539bkw.60.1334665851842; Tue, 17 Apr 2012 05:30:51 -0700 (PDT) Received: from [192.168.23.15] (212.100.42.202.fixip.bitel.net. [212.100.42.202]) by mx.google.com with ESMTPS id cy11sm37649692bkb.7.2012.04.17.05.30.50 (version=SSLv3 cipher=OTHER); Tue, 17 Apr 2012 05:30:51 -0700 (PDT) Message-ID: <4F8D627A.2040407@gmail.com> Date: Tue, 17 Apr 2012 14:30:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: X-Enigmail-Version: 1.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] is_numeric_string an hexadecimal numbers ("123" == "0x7B") From: hartmut.holzgraefe@gmail.com (Hartmut Holzgraefe) On 04/17/2012 01:20 PM, Nikita Popov wrote: > I don't think this has much BC impact, so it should be possible to change it. Same here, i never even knew that this worked in a string context until recently. Autocast/comparison rules are already complicated enough as they are documented now, and i failed to find anything in the manual that would actually say that hex in a string context is support to work at all ... I can't really judge the BC implications though, so the best way would be to start throwing E_DEPRECATED warnings for now ... or maybe go the X11 way of "deliberately break obscure feature and see how many complaints we get" ;) -- hartmut