ZF-6713: Zend_Filter_Input skips validators processing if ALLOW_EMPTY metacommand is set to true

Description

See _validateRule() method:


foreach ($data as $fieldKey => $field) {
    if (!is_array($field)) {
        $field = array($field);
    }
    foreach ($field as $value) {
        if (empty($value)) {
            if ($validatorRule[self::ALLOW_EMPTY] == true) {
                continue;
            }
...

Comments

That's correct since this code iterates through specified field values (this is not multiple-fields rule). ALLOW_EMPTY overrides other validators results.