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
Posted by Alexander Veremyev (alexander) on 2009-05-22T06:33:47.000+0000
That's correct since this code iterates through specified field values (this is not multiple-fields rule). ALLOW_EMPTY overrides other validators results.