The problem is that we have these features there for a reason: developers
use them, and keep requesting them. I did the Boolean filter as a simple
one-off originally when refactoring for ZF2, and immediately had requests
to re-instate the original features.

That said, we may be able to have a Boolean filter and a "LocalizedBoolean"
filter in order to segregate the functionality.


On Fri, Sep 6, 2013 at 8:40 AM, Michaël Gallego <notifications@github.com>wrote:

> In library/Zend/Filter/Boolean.php:
>
> >       */
> > -    protected $constants = array(
>
> This boolean filter is honestly really big and I'm wondering if we need so
> much lines of code for such a simple thing. I'd be in favour of replacing
> it by the built-in PHP boolean filter:
>
> filter_var($value, FILTER_VALIDATE_BOOLEAN)
>
> We loose some features (like localization), but for most cases, it works
> the same ("true" is evaluated to true, "false" to false, 0 to false, 1 to
> true...).
>
> What do you think?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/zendframework/zf2/pull/4575/files#r6207866>
> .
>



-- 
Matthew Weier O'Phinney
matthew@weierophinney.net
http://mwop.net/