Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65622 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95474 invoked from network); 4 Feb 2013 09:50:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Feb 2013 09:50:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=brianofish@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=php@bof.de; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.180 as permitted sender) X-PHP-List-Original-Sender: brianofish@gmail.com X-Host-Fingerprint: 209.85.212.180 mail-wi0-f180.google.com Received: from [209.85.212.180] ([209.85.212.180:57691] helo=mail-wi0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BC/23-14611-7748F015 for ; Mon, 04 Feb 2013 04:50:48 -0500 Received: by mail-wi0-f180.google.com with SMTP id hi8so2152803wib.13 for ; Mon, 04 Feb 2013 01:50:44 -0800 (PST) X-Received: by 10.194.94.37 with SMTP id cz5mr33841715wjb.49.1359971444705; Mon, 04 Feb 2013 01:50:44 -0800 (PST) Received: from rofl.localnet ([213.135.15.139]) by mx.google.com with ESMTPS id w5sm3135595wif.11.2013.02.04.01.50.42 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 Feb 2013 01:50:43 -0800 (PST) To: internals@lists.php.net Cc: Derick Rethans , Martin Jansen Date: Mon, 04 Feb 2013 10:50:40 +0100 Message-ID: <2835262.zO39iNXCyM@rofl> User-Agent: KMail/4.10 rc3 (Linux/3.7.5-k10-bof; KDE/4.9.98; x86_64; ; ) In-Reply-To: References: <510EA95F.40503@divbyzero.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [PHP-DEV] FILTER_VALIDATE_INT and +0/-0 From: php@bof.de (Patrick Schaaf) > +0 and -0 don't make sense for integers, where there is only 0. Allowing > only 0 was on purpose. +0 and -0 are accepted by sscanf('%d'), intval(), and (int). +0 is produced by sprintf('%+d') Thus, the change to FILTER_VALIDATE_INT seems to make sense. best regards Patrick