Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47018 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70813 invoked from network); 22 Feb 2010 08:23:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Feb 2010 08:23:20 -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; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 74.125.82.42 mail-ww0-f42.google.com Received: from [74.125.82.42] ([74.125.82.42:56220] helo=mail-ww0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 24/BD-00376-7FE328B4 for ; Mon, 22 Feb 2010 03:23:20 -0500 Received: by wwb29 with SMTP id 29so359874wwb.29 for ; Mon, 22 Feb 2010 00:23:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=V/jw64VUW601x4yGUS1eEBSngR/HO7W1WkDlEVIEP0g=; b=pGzSxkLlDkCZh0UBqip8g1kAJpBcgjdYr6JGKHnfD1rBLDW0w41cyOHrHY14yRvYWu xBSXVMVMZn7W1ETS8uhGcOH8Jv+/Ao/VbMGw2hrf44rgFF5EoOyzamZpjF+97EgY94o8 VTXpwmlEMZDS7BiLnQxDghtkDDmLZ1rOKIxek= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=OSisbDYOKSeRP+irHgOpyBvUaCewzRucsVKU9kG4JdffFCo4UsX90rvfDIy3S+/V9F FeJ4qWyEhjPQTGbAqsNpM01qCsmp2U06JsqYzFb4+5fkmSanOwmbq7XE5GBog8buyLaC izCQJBYwU7BwNb1kx5DtuLgmCcm66vGdSqJkk= MIME-Version: 1.0 Received: by 10.216.172.15 with SMTP id s15mr2189605wel.3.1266826996675; Mon, 22 Feb 2010 00:23:16 -0800 (PST) In-Reply-To: <7B.19.00376.96CD18B4@pb1.pair.com> References: <7B.19.00376.96CD18B4@pb1.pair.com> Date: Mon, 22 Feb 2010 09:23:16 +0100 Message-ID: To: Raphael Geissert Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Re: why not use strtol instead of php_filter_parse_{int,hex,octal}? From: pierre.php@gmail.com (Pierre Joye) hi, Please don't commit this change. I remember some issues with strtol (portability, BC breaks, etc.). Please wait until we figured them out, or find back in the archives why strtol could be a bad idea. On Mon, Feb 22, 2010 at 2:21 AM, Raphael Geissert wrote: > Raphael Geissert wrote: >> >> If there's no objection, I would like to remove them entirely and use >> strtol in php_filter_int. >> > > By the way, I don't think that the fact that strtol is locale-aware should > be a reason to make the change. Since scripts are expected to use the value > returned by filter_var() there should be no problem with the fact that > strings such as "100'000" are accepted as a valid integer, under certain > locales. > > Cheers, > -- > Raphael Geissert > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org