ZF-7705: Zend_Validate_Date - Add Format to Zend_Validate_Date::FALSEFORMAT error message

Issue Type: Improvement Created: 2009-08-27T13:02:39.000+0000 Last Updated: 2009-08-29T01:45:32.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Luke Barton (lbarton) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate

Related issues: Attachments: - Date.php.patch


The error messages are inconsistent.

The NOT_YYYY_MM_DD displays the format in the error message, however a custom format failure displays a similar message, less the format.

Since Zend_Validate_Abstract can substitute tokens other than just the %value%, it might be worth adding the format to FALSEFORMAT, to bring it into line with NOT_YYYY_MM_DD.

<pre class="literal">
self::NOT_YYYY_MM_DD => "'%value%' is not of the format YYYY-MM-DD",
self::FALSEFORMAT    => "'%value%' does not fit given date format"


Posted by Thomas Weidner (thomas) on 2009-08-29T01:45:30.000+0000

Fixed with r17874 for ZF 1.10

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.