Issues

ZF-5869: Zend_Date::isDate using format

Issue Type: Bug Created: 2009-02-23T14:17:17.000+0000 Last Updated: 2009-02-25T03:32:40.000+0000 Status: Resolved Fix version(s): - 1.7.6 (02/Mar/09)

Reporter: Jeroen Olthof (ollieno) Assignee: Thomas Weidner (thomas) Tags: - Zend_Date

Related issues: Attachments:

Description

using Zend_Date::isDate() with format. Unexpected result:

<pre class="highlight">
$bool = Zend_Date::isDate("1s1-2008", 'MM-yyyy');
Zend_Debug::dump($bool);     

result: {color:red} bool(true) {color}

I assume this is a bug ?!

Comments

Posted by Thomas Weidner (thomas) on 2009-02-23T14:48:13.000+0000

No, because 1-2008 is a date according to MM-yyyy. Leading and following parts are stripped as this only checks if Zend_Date can handle this date.

Use additionally regex or string-length validator when you have to limit the date to a stricter value.

Posted by Thomas Weidner (thomas) on 2009-02-25T03:32:20.000+0000

Closing as non-issue

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts