Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25734 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84136 invoked by uid 1010); 16 Sep 2006 15:35:26 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 84121 invoked from network); 16 Sep 2006 15:35:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Sep 2006 15:35:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=denials@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=denials@gmail.com; sender-id=pass; domainkeys=good Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.82.232 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: denials@gmail.com X-Host-Fingerprint: 66.249.82.232 wx-out-0506.google.com Linux 2.4/2.6 Received: from [66.249.82.232] ([66.249.82.232:51930] helo=wx-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/DC-23155-DB91C054 for ; Sat, 16 Sep 2006 11:35:26 -0400 Received: by wx-out-0506.google.com with SMTP id s18so3730586wxc for ; Sat, 16 Sep 2006 08:35: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=bMR1Iz7MYDBPM39CoZFydEL8yv/SOdaakq/aiXlkKFTxzuegUx7dSeLXpHz4fwo5YrSTC1OvQT9zgApH/7YRrB0OEl/Y/nuvmuAvFaXwA1BOeGdrCMkm4ZfnbF8qKcYLFD0gz0t2SRBHE/KagjhcAOYbJSBWmyE52bz8BssPll0= Received: by 10.90.84.17 with SMTP id h17mr4128780agb; Sat, 16 Sep 2006 08:35:23 -0700 (PDT) Received: by 10.90.78.19 with HTTP; Sat, 16 Sep 2006 08:35:22 -0700 (PDT) Message-ID: Date: Sat, 16 Sep 2006 11:35:22 -0400 To: pierre.php@gmail.com Cc: internals@lists.php.net, derick@php.net, rasmus@php.net, ilia@prohost.org In-Reply-To: <20060916125431.42e9a5dd@pierre-u64> 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> Subject: Re: [PHP-DEV] ext/filter, Final API proposal From: denials@gmail.com ("Dan Scott") On 16/09/06, Pierre wrote: > Proposal: > ********** > > I. Availalbe functions: > ------------------- > > * input_get > Gets variable from outside PHP or from a userland variable and > optionally filters it using one filter and its options or flags. It > accepts only scalar by default, array can be returned using > ALLOW_ARRAY. > > * input_get_args > Gets multiple variables from outside PHP or from a userland variable > and optionally filters them using different filters and options/flags. > It accepts only scalar by default, array can be returned using > ALLOW_ARRAY. > > * input_has_variable > Checks if variable of specified type exists. > > * input_name_to_filter > Returns the filter ID belonging to a named filter Minor: Can this be something like 'input_identify_filter' or 'input_id_filter'? The current name of the function doesn't suggest to me that I'm going to get an ID back; it currently sounds like I'm sending a name into a filter. > * input_ filters_ list > Returns a list of all supported filters Minor: the general structure of the function names are __, so it would be more consistent if this was 'input_list_filters'. Overall: +1 (with bonus points if you go with __ for the two identified cases) Dan