Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23065 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75677 invoked by uid 1010); 1 May 2006 14:46:21 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 75661 invoked from network); 1 May 2006 14:46:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 May 2006 14:46:20 -0000 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 64.233.166.182 pproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.166.182:51524] helo=pproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 47/70-18514-C3F16544 for ; Mon, 01 May 2006 10:46:20 -0400 Received: by pproxy.gmail.com with SMTP id 57so3138526pya for ; Mon, 01 May 2006 07:46:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EgbLz6QzB9eSt8K+jUn+W3dAIql4ttleZTqnhrMk8xNJ1Q1xzPAUkFUkHllJT0IxExJBKhsHtE8+W26BTF5zSG9Hs25EdbWfaShcoNmoe7XveTCRpLDu+IDnkJSxi6TalPgxc9p5CrxK83yfDbqqfCbeDEmn+x++d4UU0UC9Hm0= Received: by 10.35.66.13 with SMTP id t13mr53951pyk; Mon, 01 May 2006 07:46:16 -0700 (PDT) Received: by 10.35.69.2 with HTTP; Mon, 1 May 2006 07:46:16 -0700 (PDT) Message-ID: Date: Mon, 1 May 2006 16:46:16 +0200 To: internals@lists.php.net In-Reply-To: <20060501161754.64020950@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060501161754.64020950@localhost.localdomain> Subject: Re: [PHP-DEV] ext/filter, add input_get_args, support of scalar or array result From: pierre.php@gmail.com (Pierre) hello, I forgot the scalar/array part :) I also added FILTER_FLAG_SCALAR and FILTER_FLAG_ARRAY. These flags let you choose if you allow scalar only or array. For example: foo.php?a[]=3D1&a[]=3D2 will be invalid if you use the FILTER_FLAG_SCALAR. I like to add this feature to input_get as well. FILTER_FLAG_ARRAY will always returns you an array, even for foo.php?a=3D1 (array(1)). --Pierre