Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60073 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77426 invoked from network); 17 Apr 2012 11:35:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Apr 2012 11:35:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=simonsimcity@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=simonsimcity@googlemail.com; 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:53977] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BF/61-03996-7955D8F4 for ; Tue, 17 Apr 2012 07:35:51 -0400 Received: by obbup16 with SMTP id up16so1505768obb.29 for ; Tue, 17 Apr 2012 04:35:48 -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=bXvMf21t/2Cb7zwv5N94eBWcv/EyPUaPI3pNMeXTEWM=; b=RIb5OCMj9/NWoYlLNl/qoAvcm3Yc6cULXSPdiJXSC35fufUugjuvF+xZw7a7aNW9Vt TmOGBuyYUCPvlNXjLAzUdaPZF/AoRlC3k8930z/0LubG3aR2Bk6/ifDPqwIeQv4sV0s0 iHR18Y9nA9UQdPaVhBU2NdyffqisTPgO7JoRua0z1bzWioXO6KGyTx1xhC98nVVBvK7g C9Z+WLysnLqy/4Krm0b4kHXtnW9qNVCX1O7OZKhy65/Wa4N9DNwz0lK3VvGPrgh6aCyk OhswQKvzJwgjWr6UF/bHTQLUQ+GuQVc5CrKT8eK2neH/j6s+Bvw4ZnqwLEktLuU8lcCr XfRg== MIME-Version: 1.0 Received: by 10.182.119.6 with SMTP id kq6mr21133489obb.67.1334662548678; Tue, 17 Apr 2012 04:35:48 -0700 (PDT) Received: by 10.60.98.74 with HTTP; Tue, 17 Apr 2012 04:35:48 -0700 (PDT) In-Reply-To: References: Date: Tue, 17 Apr 2012 13:35:48 +0200 Message-ID: To: Nikita Popov Cc: PHP internals 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 Nikita Popov > > var_dump('123' == '0x7b'); // true > > In all other parts of the engine hexadecimal strings are not recognized > [3]: > > var_dump((int) '0x7b'); // int(0) > Hi, Nikita I personally would rather change the type-conversion for strings to integer ... At least if you force it to do a type-cast (in other words: forcing to get any valuable integer of that string) ... Bye Simon