ZF-7183: Zend_Filter_StringTrim does not work correctly with input which begins with a unicode char
After last update from svn repository i have a bug using Zend_Filter_StringTrim.
I got an error "Invalid type given, value should be float, string, or integer" after having submitted a form with a Russian text. (Example: Зенд) I don't know about other languages, but everything is fine with a text in English.
Code is simple:
$name = new Zend_Form_Element_Text('name'); $name->setRequired(true) ->addValidator($validName) ->addFilter(new Zend_Filter_StringTrim());
If the last line is commented out, everything is ok.