Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60112 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12078 invoked from network); 17 Apr 2012 21:41:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Apr 2012 21:41:28 -0000 Authentication-Results: pb1.pair.com header.from=simonsimcity@googlemail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=simonsimcity@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: simonsimcity@googlemail.com X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:58308] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 30/05-21594-883ED8F4 for ; Tue, 17 Apr 2012 17:41:28 -0400 Received: by obbup16 with SMTP id up16so2200624obb.29 for ; Tue, 17 Apr 2012 14:41:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Q5fdai1BFIBUuMkdGeRY+BbP1NAikCrrp+OpyTTl60k=; b=p73lBLtT8/bLsKbF8KEQEdgLXgNjWlZ7K/syYu8qWQyFIwmG8Ci3zWpKwV7NH3QQIv uwUI2NKY0sKJpAX9FfbD0y4DFFYMbCiBVRqH5hNcIH1qfT9H+rsHTwKnYfMn4ClXBqQ8 NMlwpgGeidf2IFyfPbE2P1NNLDxavumw25obMeEXdBfixsEOSgx44Ux+WxBvzWJryJ3L mzEHb+Bm9RDJJsZoJrRgEx93KQsa4zC4CP9C7FRo/eBpyUr29i/tESv4ijURPTASWb8/ rPCFpkO7c/uKi60O+hN7nZybvaU83TvjKR6XpxfumEDAgqNzPtFE8b+q5T2SjTQLur3O LrMQ== MIME-Version: 1.0 Received: by 10.182.192.39 with SMTP id hd7mr23360084obc.47.1334698885297; Tue, 17 Apr 2012 14:41:25 -0700 (PDT) Received: by 10.60.98.74 with HTTP; Tue, 17 Apr 2012 14:41:25 -0700 (PDT) In-Reply-To: References: Date: Tue, 17 Apr 2012 23:41:25 +0200 Message-ID: To: Gustavo Lopes Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] is_numeric_string an hexadecimal numbers ("123" == "0x7B") From: simonsimcity@googlemail.com (Simon Schick) 2012/4/17 Simon Schick > > Hi, Gustavo > > That's something I didn't know of ... if we're doing that, it should, > of course, be also be done for the dual system. > The only thing I wonder about is the code examples you're giving ... > > I would expect this to work if we start to change something here: > > var_dump((int) '0x7b'); // int(123) > var_dump((int) '0b1111011'); // int(123) > var_dump((int) '0123'); // int(123) > > The last example was not mentioned here before but as you set in an > example, I did it here as well ... > > Bye > Simon Hi, all As I saw now in another thread - I forgot the octal number-system which takes 0 as prefix ... and this would change the result of my last example: var_dump((int) '0173'); // int(123) This makes me quite unsure if this should be done the way I proposed ... Here I would not expect it to happen like this. Bye Simon