ZF-6764: Minor misconception in Zend_Validate messages processing

Issue Type: Bug Created: 2009-05-21T04:47:19.000+0000 Last Updated: 2009-11-27T14:41:37.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Alexander Veremyev (alexander) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate

Related issues: - ZF-3657



According to existing documentation getMessages() method returns a list of validation failure messages as => pairs.

It's declared, that getErrors() value can be also get calling array_keys() on the return value from getMessages().

But different validators in the validator chain may have the same message keys, so some messages may be lost.

It also produces problems in Zend_Filter_Input, which uses validators conception for messages processing. All rule validation errors messages are stored within one array.


Posted by Thomas Weidner (thomas) on 2009-11-27T14:41:36.000+0000

Actually every validator uses another key.

Keys are using a syntax like "validatorKey"... f.e. "dateFalseFormat" or "stringFalseFormat".

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.