Re: Before March 1st aka PHP 5.1 beta

From: Date: Thu, 17 Feb 2005 20:26:32 +0000
Subject: Re: Before March 1st aka PHP 5.1 beta
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-15065@lists.php.net to get a copy of this message
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. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.internals (#15065) next »