Hi Stephen,

On Thu, Sep 8, 2016 at 7:34 PM, Stephen Reay <php-li...@koalephant.com> wrote:
> Adding a bunch of new functions is IMO the wrong approach to this type of 
> thing.
> The existing filter_var/filter_input infrastructure works well, if you want 
> to define more rules I would definitely encourage building on/improving that 
> system not adding a bunch of extra functions.

Do you really think filter module works well as optimal validator?
It cannot enforce even whitelisting well...

What filter module is missing as validator currently are:

 - Whitelisting concept (Implemented)
 - Multiple rules for a variable (Implemented)
 - String rules (Implemented)
 - Optional rule (To be implemented. Refactoring is needed)

These are the missing features and cannot be fixed without additional
functions. (W/o modifying current function behaviors)

Regards,

--
Yasuo Ohgaki
yohg...@ohgaki.net

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

Reply via email to