Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65579 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92148 invoked from network); 3 Feb 2013 18:34:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2013 18:34:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=theanomaly.is@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=theanomaly.is@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.54 as permitted sender) X-PHP-List-Original-Sender: theanomaly.is@gmail.com X-Host-Fingerprint: 74.125.82.54 mail-wg0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:32867] helo=mail-wg0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3A/A0-22879-1DDAE015 for ; Sun, 03 Feb 2013 13:34:58 -0500 Received: by mail-wg0-f54.google.com with SMTP id fm10so4090675wgb.21 for ; Sun, 03 Feb 2013 10:34:54 -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=UUqzBk3GKiJgI/+N85OTaMZdIr9rHbL7WTTdmGlGVas=; b=Pkn8JAps+HykhKWNabtNmjNVc4T9zm0G0Zl9K7U6dUlFOpw/vnFHQTjOhEyj7IQjvc W+L5Raq9XEBO0U54j3D8RL/wmKpNNBUaC2z6hmNrisqjTGBHtbKzY75BmkTpXV71HvSN 7N6FstmFuwPAKgzvejQP/FdTKLhKWrmKRkk17NKr9ahq5HwO2KJpvmZRZ1yO+D4UdlgZ OWLRvVolcJPWS899mkbYaLWOQR1GV73jmgT/ei61fZZVadKmJpLL3iarnLPJEt+YtUxz eqVJmxh1YLU3yQBI05gp7M7IQWfghZ0JWC4JMardZNdtKMgtqmH8aI3qwT81FdYWAdxc MqsQ== MIME-Version: 1.0 X-Received: by 10.180.94.162 with SMTP id dd2mr2181103wib.21.1359916494370; Sun, 03 Feb 2013 10:34:54 -0800 (PST) Received: by 10.227.42.135 with HTTP; Sun, 3 Feb 2013 10:34:54 -0800 (PST) In-Reply-To: <510EA95F.40503@divbyzero.net> References: <510EA95F.40503@divbyzero.net> Date: Sun, 3 Feb 2013 13:34:54 -0500 Message-ID: To: Martin Jansen Cc: PHP Internals Content-Type: multipart/alternative; boundary=f46d04462ea89238a304d4d63bd9 Subject: Re: [PHP-DEV] FILTER_VALIDATE_INT and +0/-0 From: theanomaly.is@gmail.com (Sherif Ramadan) --f46d04462ea89238a304d4d63bd9 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Feb 3, 2013 at 1:15 PM, Martin Jansen wrote: > Back in December I submitted a pull request to make FILTER_VALIDATE_INT > accept +0/-0. That request was merged into php-src: > > https://github.com/php/php-src/pull/248 > > The other day I then stumbled upon a note on > http://www.php.net/manual/en/filter.filters.validate.php saying "Numbers > +0 and -0 are not valid integers but validate as floats.", which makes > me wonder if the previous behavior (rejecting +0/-0) was on purpose > rather than by mistake? > > Or should the documentation be adjusted to reflect the new behavior? > > - Martin > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > Well, as far as I can tell that note was there back when FILTER_VALIDATE_INT didn't accept +/-0 as a valid int. I'll go ahead and update the docs to note the change in behavior. --f46d04462ea89238a304d4d63bd9--