Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65630 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12198 invoked from network); 4 Feb 2013 11:40:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Feb 2013 11:40:45 -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.215.49 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.215.49 mail-la0-f49.google.com Received: from [209.85.215.49] ([209.85.215.49:37589] helo=mail-la0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D8/06-14611-C3E9F015 for ; Mon, 04 Feb 2013 06:40:45 -0500 Received: by mail-la0-f49.google.com with SMTP id fs13so4500760lab.36 for ; Mon, 04 Feb 2013 03:40:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=D/1M26h+eHo7HuPrvk4epMYHwjrpPiNcdZak4/o7/gg=; b=cBMNuFh429zFPkQRm9EfQ+zSSiGzIJR7MHWSmyYHENBAPBQS9oSHcPXG/PxR3hZilC MsaB6qmtWoESycnLjQ3uHHC5x/Sb4/wgU3v9LggU7ssVnC+iGS7ToyJEBZUxWL7bpoT2 VPUPYhBeKIB+YsuGv8o3PRzz5kCIffwRFVI9HQlppE1tZGHR4qX5i41t2mGZWxsKWqzp J4Oc3EQL4gUMM0E57QnXMyrkrIGliPwhiFTqu2ORd23P8Zc9Vkq615dkINFWMCLHnjvq A9v5i1BAmMGCI1kLBByBCERFsQo1HzrVTbH4fuZcCtd2Oz87JiwUeFl1gN90LF7yzOV7 eCZQ== MIME-Version: 1.0 X-Received: by 10.112.51.233 with SMTP id n9mr8263237lbo.47.1359978041640; Mon, 04 Feb 2013 03:40:41 -0800 (PST) Received: by 10.112.111.131 with HTTP; Mon, 4 Feb 2013 03:40:40 -0800 (PST) Received: by 10.112.111.131 with HTTP; Mon, 4 Feb 2013 03:40:40 -0800 (PST) In-Reply-To: References: <510EA95F.40503@divbyzero.net> <2835262.zO39iNXCyM@rofl> Date: Mon, 4 Feb 2013 12:40:40 +0100 Message-ID: To: Gustavo Lopes Cc: PHP internals , Patrick Schaaf , Derick Rethans , Frank Liepert , Martin Jansen Content-Type: multipart/alternative; boundary=f46d0401f97f13092304d4e49041 Subject: Re: AW: [PHP-DEV] FILTER_VALIDATE_INT and +0/-0 From: pierre.php@gmail.com (Pierre Joye) --f46d0401f97f13092304d4e49041 Content-Type: text/plain; charset=ISO-8859-1 Hi, On Feb 4, 2013 12:33 PM, "Gustavo Lopes" wrote: > So the question is only whether "+0" or "-0" (or "+0", etc.) should be accepted as integers by FILTER_VALIDATE_INT. I think they should, because we also accept non-canonical inputs such as "+5", i.e., we always accept a sign. It's true that 0 is neither positive or negative, but I don't think "accepts a leading sign, except if it's 0" is a good option. It's an unnecessary special case. > I fully agree. Cheers, Pierre --f46d0401f97f13092304d4e49041--