Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47832 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47342 invoked from network); 8 Apr 2010 04:45:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Apr 2010 04:45:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.216 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.218.216 mail-bw0-f216.google.com Received: from [209.85.218.216] ([209.85.218.216:36346] helo=mail-bw0-f216.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 63/0B-20534-D7F5DBB4 for ; Thu, 08 Apr 2010 00:45:49 -0400 Received: by bwz8 with SMTP id 8so1431265bwz.23 for ; Wed, 07 Apr 2010 21:45:46 -0700 (PDT) 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:received:message-id:subject:from:to:cc:content-type; bh=2zVs7RtIQUrHVVXbJlIPoae8zi5hYQxd6TyvydlV5O0=; b=qaAXLopUNTRqns+fye2c7OjRnHcqKew76sqZJn+3bDVCu+YC+RcJdXwMAby8JQqjdX H1SSIzWf7juVofz8qZyi0meso82UVo5PurS6bCM1c8SPGGLKvbnGc3RnQgJANQaNPWaq u+3zgyrBN5VHY8VLJmDf65RODX53ZcLBv4a3A= 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=BqQYGdAc4rgv88+kA1YCGwLAnj46G7M4hrw0UZIOyz5tq977eJPNLn1VGCu05s/nsk mYItmTGoeWtVEuoB3GzL4Arw4hcdxsGH9xEd0H7/3O9b/N4LEoL8oL6vE+dgJAJrosFl BobveKktkgpSATcY2zDRw2Mh4NzZl7Pfk/bhM= MIME-Version: 1.0 Received: by 10.204.120.10 with HTTP; Wed, 7 Apr 2010 21:45:46 -0700 (PDT) In-Reply-To: References: Date: Thu, 8 Apr 2010 06:45:46 +0200 Received: by 10.204.32.77 with SMTP id b13mr10397599bkd.113.1270701946128; Wed, 07 Apr 2010 21:45:46 -0700 (PDT) Message-ID: To: Michael Graziano Cc: Justin Dearing , Rasmus Lerdorf , valli@icsurselva.ch, internals@lists.php.net Content-Type: multipart/alternative; boundary=000325555bba1d4a400483b25ad7 Subject: Re: [PHP-DEV] Re: Bug 47435[Was]: Re: [PHP-DEV] What gruntwork needs to be done From: tyra3l@gmail.com (Ferenc Kovacs) --000325555bba1d4a400483b25ad7 Content-Type: text/plain; charset=UTF-8 I want both!!! :) Tyrael On Wed, Apr 7, 2010 at 11:18 PM, Michael Graziano wrote: > > Ramus, > > > > On Tue, Apr 6, 2010 at 1:34 PM, Rasmus Lerdorf > wrote: > > > >> > >> Here is a straightforward (but not easy) one: > >> > >> http://bugs.php.net/bug.php?id=47435 > >> > >> I actually found it easy, slightly tedious, and not straightforward. I > > guess its perspective. > > > > I am CCing my former colleague Mike G who added is $.02 to the ticket at > > my > > request. > > > Valli's notes implied that FILTER_VALIDATE_IP should match CIDR netmask > > notations. eg 0.0.0.0/0 and ::1/128 should match. They do not. I propose > a > > new flag called FILTER_FLAG_INCLUDE_CIDR_NETMASK that does match. > > I have mixed feelings on the CIDR matching aspect -- using CIDR notation > It's possible to define an "insane" network (like 8000::/1 or 128.0.0.0/1 > or 192.0.0.0/8) that encompasses a bunch of "special" nets, but is not > itself "special" per the RFCs. It's a stupid and pathological edge case > which should never happen, but it creates all sorts of funky interaction > with the other filter flags that you would need to account for. > Rejecting the CIDR mask and requiring an unqualified (and therefore > implied v4/32 or v6/128) address is a neat (and common) way of > sidestepping that problem. > > Having said that, in the sane, non-pathological case subnet matching is > really nice to have. :) > > -MG > > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --000325555bba1d4a400483b25ad7--