Issues

ZF-12366: wrong date validating

Issue Type: Bug Created: 2012-08-11T13:53:12.000+0000 Last Updated: 2012-08-14T07:31:59.000+0000 Status: Open Fix version(s): Reporter: Subach Artem (subdigger) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate

Related issues: Attachments:

Description

<pre class="highlight">
$validator = new Zend_Validate_Date(array('format' => 'dd.mm.yyyy'));
var_dump($validator->isValid('2010')); // returns true
var_dump($validator->isValid('May'));  // returns false
var_dump($validator->isValid('11asdf.08..201'));  // returns true

but hope this all should return false...

Comments

Posted by Frank Br├╝ckner (frosch) on 2012-08-14T07:31:59.000+0000

Code tags added.

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