Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65736 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68097 invoked from network); 8 Feb 2013 22:12:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Feb 2013 22:12:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:35822] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 13/C5-18015-D3875115 for ; Fri, 08 Feb 2013 17:12:15 -0500 Received: from localhost (xdebug.org [127.0.0.1]) by xdebug.org (Postfix) with ESMTPS id 92CAFDE13D; Fri, 8 Feb 2013 22:12:09 +0000 (GMT) Date: Fri, 8 Feb 2013 17:12:08 -0500 (EST) X-X-Sender: derick@whisky.home.derickrethans.nl To: hakre cc: Gustavo Lopes , 'Patrick Schaaf' , "internals@lists.php.net" , Frank Liepert , 'Martin Jansen' In-Reply-To: <1360350275.70839.YahooMailNeo@web133005.mail.ir2.yahoo.com> Message-ID: References: <510EA95F.40503@divbyzero.net> <2835262.zO39iNXCyM@rofl> <002d01ce02c8$dbb6d430$93247c90$@Liepert@gmx.de> <1360350275.70839.YahooMailNeo@web133005.mail.ir2.yahoo.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-327179303-1360361530=:5054" Subject: Re: AW: [PHP-DEV] FILTER_VALIDATE_INT and +0/-0 From: derick@php.net (Derick Rethans) --8323329-327179303-1360361530=:5054 Content-Type: TEXT/PLAIN; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Fri, 8 Feb 2013, hakre wrote: > Von: Gustavo Lopes >=20 > > So the question is only whether "+0" or "-0" (or=20 > > "+0", etc.) should be accepted as integers by FILTER_VALIDATE_INT. I=20 > > think they should, because we also accept non-canonical inputs such as= =20 > > "+5", i.e., we always accept a sign. It's true that 0 is neither=20 > > positive or negative, but I don't think "accepts a leading sign, except= =20 > > if it's 0" is a good option. It's an unnecessary special case. >=20 > A special case still left is "=C2=B10". It is with the 'PLUS-MINUS SIGN' = (U+00B1). PHP can't parse that as a number, so forget about adding this. cheers, Derick --=20 http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug Posted with an email client that doesn't mangle email: alpine --8323329-327179303-1360361530=:5054--