Issues

ZF-5070: Zend_Validate_Date wrong result with float => return TRUE

Issue Type: Bug Created: 2008-11-26T01:39:26.000+0000 Last Updated: 2008-12-21T06:02:52.000+0000 Status: Resolved Fix version(s): - 1.7.1 (01/Dec/08)

Reporter: Nicolas Milesi (nicolas milesi) Assignee: Thomas Weidner (thomas) Tags: - Zend_Date

  • Zend_Validate

Related issues: Attachments:

Description

The Date validator return TRUE with some float values:

<pre class="literal"> 
$validator = new Zend_Validate_Date('YYYY-MM-DD');
        $result = $validator->isValid($value);
        
        if (!$result) {
            $this->_error(self::NOT_VALID_DATE);
            return $result;
        }
        
        return $result;

...->isValid(-1.10) return TRUE ...->isValid(-3.0005) return TRUE

Comments

Posted by old of Satoru Yoshida (yoshida@zend.co.jp) on 2008-11-26T05:29:09.000+0000

I think it is a issue how to check type of parameters. It is similar to ZF-4352

Posted by Thomas Weidner (thomas) on 2008-11-26T05:31:37.000+0000

@Satoru:

I don't know how you come to the idea that this issue is related to ZF-4352. Wether Alpha nor Alnum filters are used by this filter. And the value is also not casted.

There is no relationship between this two issues.

Posted by Thomas Weidner (thomas) on 2008-11-27T11:56:35.000+0000

Fixed with r12910

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