ZF-8125: Zend_Form doen't set correctly a validator if have set only 1 option


Zend_Form cannot set correctly options of validator's element if 1 options is set.

Replication bug : create a Zend_Form with config ini :

..other element.. = "text" = "element" = "email" = "Email" = true = "EmailAddress" = true = "StringToLower" ..other element..

It not set correctly Zend_Validator_EmailAddress , the option validateMx is skipped.

if add = 1 or = "abcd"

validator take all options.


Already fixed in past with r18058 since 10.Sept.