At 01:44 PM 2/2/2005 -0800, Rasmus Lerdorf wrote:
You guys can write your own implementation and put it in PECL alongside the one I am putting in there and we can decide if any of them should be bundled by default. Perhaps none of them should, but like it or not, people want to filter at this level and the extension to satisfy this need will be available to them in PECL.

It'd be great if we can all sync on one implementation.
I know it gets a bit hard with everyone pulling their way and having yet another suggestion but I'm sure we can reach something everyone is happy with.
In any case, the main part of this project are the filters themselves ,and that work shouldn't be replicated.
I must say that personally I probably would prefer a programmatic way of filtering (as I mentioned it could be done at runtime), but I don't think it would be terrible to have a paranoid mode that filters earlier.
So just to lay out my $0.02 it'd be nice to have something like:
filter_all(POST, FILTER_FOOBAR);
and
$foo = filter_input(POST, "foo", FILTER_NUM);


Andi

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to