Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23067 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11562 invoked by uid 1010); 1 May 2006 21:06:26 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 11547 invoked from network); 1 May 2006 21:06:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 May 2006 21:06:26 -0000 X-Host-Fingerprint: 217.79.190.163 r163.red.fastwebserver.de Received: from ([217.79.190.163:11664] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 83/F0-18514-F4876544 for ; Mon, 01 May 2006 17:06:23 -0400 To: internals@lists.php.net,pierre.php@gmail.com Date: Mon, 1 May 2006 23:06:16 +0200 Message-ID: <20060501230616.093c5690@localhost.localdomain> In-Reply-To: <20060501161754.64020950@localhost.localdomain> References: <20060501161754.64020950@localhost.localdomain> Reply-To: pierre.php@gmail.com X-Newsreader: Sylpheed-Claws 2.1.0 (GTK+ 2.8.6; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Posted-By: 217.79.190.163 Subject: Re: ext/filter, add input_get_args, support of scalar or array result From: pierre.php@gmail.com (Pierre) On Mon, 1 May 2006 16:17:54 +0200 pierre.php@gmail.com (Pierre) wrote: > I also like to change input_get behaviors. We actually have no way to > know if a variable does not exists or is invalid. Both return NULL. > > I like to return false when a variable does not fit the condition and > NULL when it does not exist. Is it fine? If yes, I'll provide another > patch. The patch is updated to support this behavior in input_get_args. If a variable does not exist, its index is set to NULL, if its value is invalid, it is set to FALSE. It starts to be usefull :-) -- Pierre Did I help you? Please donate http://blog.thepimp.net/index.php/1998/04/12/57-please-donate