Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15068 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60159 invoked by uid 1010); 17 Feb 2005 20:44:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 60144 invoked from network); 17 Feb 2005 20:44:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Feb 2005 20:44:43 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:46057] helo=mail.zend.com) by pb1.pair.com (ecelerity 1.2 (r4437)) with SMTP id 51/F7-39535-A3205124 for ; Thu, 17 Feb 2005 15:44:43 -0500 Received: (qmail 8191 invoked from network); 17 Feb 2005 20:44:39 -0000 Received: from localhost (HELO DORON-LAPTOP.zend.com) (127.0.0.1) by localhost with SMTP; 17 Feb 2005 20:44:39 -0000 Message-ID: <5.1.0.14.2.20050217124349.01eb0fc0@localhost> X-Sender: andi@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 17 Feb 2005 12:44:36 -0800 To: Daniel Convissor , PHP Internals List In-Reply-To: <20050217202632.GA28838@panix.com> References: <5.1.0.14.2.20050217122003.01f59748@localhost> <5.1.0.14.2.20050217114315.02076c60@localhost> <59089102.20050217201853@marcus-boerger.de> <5.1.0.14.2.20050217114315.02076c60@localhost> <5.1.0.14.2.20050217122003.01f59748@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] Before March 1st aka PHP 5.1 beta From: andi@zend.com (Andi Gutmans) At 03:26 PM 2/17/2005 -0500, Daniel Convissor wrote: >On Thu, Feb 17, 2005 at 12:21:45PM -0800, Andi Gutmans wrote: > > Yeah I realize it's different but my idea was that if you have something > > like: > > filter_get(POST, "foo", FILTER_NUMBER) the semantics of this or some other > > function could be: > > if (isset($_POST["foo"]) && is_number(..... > > > > I think in most cases that would do and doesn't require to add/change > > opcodes and language constructs... > >Yeah, but... what if one wants to call it on a variable that's not part of >the superglobals? Plus that construct doesn't provide a way to set the >default value for the particular variable at hand. Well the API could allow the option to provide a default value if the data doesn't match the input. That's why I used the word "could" because the API for the input filtering hasn't been finalized. Andi