Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60072 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75918 invoked from network); 17 Apr 2012 11:28:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Apr 2012 11:28:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gx0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:51192] helo=mail-gx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7C/11-03996-8E35D8F4 for ; Tue, 17 Apr 2012 07:28:41 -0400 Received: by ggmb2 with SMTP id b2so3329216ggm.29 for ; Tue, 17 Apr 2012 04:28:37 -0700 (PDT) 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:content-transfer-encoding; bh=M/Jb+pzOSXar0Rbz+vLXJSEtAYL60e5G1EfgW61eQyw=; b=HrBqd5Hr+GPDrDBNk3/rDTj+nuL9tse/lYemmYLMtWZwR7uexSsNRW7dEvMX4KU81E Orom6ln96jODJPl98Bzh0xrVLS3qNZvpwIGGN7posTgcPy6y/67y8o6YLkl7bRpKNETh wni61wgxtklXgHQEXfyoJLoqs85jkMQrq/wzTOAO+YzSF4Z6YzGHpS3AEByilzQNDVMl Gnp4csDTZ2gI2zfveiRDw24gIH18D3d0kUxLGQS9IwKHP8HlrMusq53W7rNJ94w6LOBU 5ev3P9ee9rV2ySE/Y9KyJ4JovRiAh2tJC2Ck4I/fZT3Nzu0hlJha38FByqtugf7F3HzA H0bA== MIME-Version: 1.0 Received: by 10.236.193.1 with SMTP id j1mr15332057yhn.40.1334662117188; Tue, 17 Apr 2012 04:28:37 -0700 (PDT) Received: by 10.147.168.16 with HTTP; Tue, 17 Apr 2012 04:28:37 -0700 (PDT) In-Reply-To: References: Date: Tue, 17 Apr 2012 13:28:37 +0200 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] is_numeric_string an hexadecimal numbers ("123" == "0x7B") From: pierre.php@gmail.com (Pierre Joye) hi! On Tue, Apr 17, 2012 at 1:20 PM, Nikita Popov w= rote: > =A0[3]: http://www.php.net/manual/en/language.types.string.php#language.t= ypes.string.conversion From the manual: "If the string starts with valid numeric data, this will be the value used. Otherwise, the value will be 0 (zero). Valid numeric data is an optional sign, followed by one or more digits (optionally containing a decimal point), followed by an optional exponent. The exponent is an 'e' or 'E' followed by one or more digits. " So no problem from to change this confusing behavior. Cheers, --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org