Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25772 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61991 invoked by uid 1010); 19 Sep 2006 22:51:28 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 61976 invoked from network); 19 Sep 2006 22:51:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Sep 2006 22:51:28 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=good Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.182.185 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 64.233.182.185 nf-out-0910.google.com Linux 2.4/2.6 Received: from [64.233.182.185] ([64.233.182.185:20479] helo=nf-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AF/8F-54096-D6470154 for ; Tue, 19 Sep 2006 18:51:27 -0400 Received: by nf-out-0910.google.com with SMTP id y25so337165nfb for ; Tue, 19 Sep 2006 15:51:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UJIDTp5QXkMs8mQ67E6y7Y3BdvFdfUbyn1xv9DP9UaspMeX1ec52bC0gdtTO4EyXVc9nLfamNBNi5/USVkpw3rxqZ3eECQKOnS1YJP+JdKCvy7M1coJctw6niW5rAZl89Kk8NOoXl9DHiSkElr+7LzKpL1sGv4wtdLedxuH5ywI= Received: by 10.78.200.3 with SMTP id x3mr4181439huf; Tue, 19 Sep 2006 15:51:23 -0700 (PDT) Received: by 10.78.137.6 with HTTP; Tue, 19 Sep 2006 15:51:23 -0700 (PDT) Message-ID: Date: Wed, 20 Sep 2006 00:51:23 +0200 To: "Christian Schneider" Cc: internals@lists.php.net, rasmus@php.net, ilia@prohost.org, "Derick Rethans" In-Reply-To: <451070DB.7000803@cschneid.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060916125431.42e9a5dd@pierre-u64> <450C02B3.10103@cschneid.com> <451070DB.7000803@cschneid.com> Subject: Re: [PHP-DEV] Re: ext/filter, Final API proposal From: pierre.php@gmail.com (Pierre) Hello, On 9/20/06, Christian Schneider wrote: > Pierre wrote: > > The flag allows arrays and always returns an array. It is obvious as > > if you allow array or scalar, you have to use is_array, that's a step > > we easily drop internally by always returning an array. I do not see > > the point to have ALLOW_ARRAY and FORCE_ARRAY. It is confusing. > > I agree with you there. And I also like the function names you guys came > up with. Thanks, the patch is even ready, but... > But my real reason to write this email is this: Is there any chance > INPUT_REQUEST would make it into 5.2 if I come up with a patch? What > would be the time frame for it? Is your current patch online so I could > base it on that? > The reason I'm asking is that I think it the interface without it is > unnecessarily crippled and providing it later makes version checking > necessary in code using this function. If Derick can make a compromise and accept to this widely approved proposal, yes, I can make INPUT_REQUEST for 5.2. If not, I'm not even sure that 5.2 will have filter (or any upcoming version). I'm pessimist, I'm again blocked by a "no" without alternatives. Please note that Dmitry was kind enough to merge a bug fix about cgi and -d. It will allow me to add a bunch of INPUT_GET/POST/REQUEST tests with different default filters. --Pierre