Issues

ZF-3236: CLONE -value "0" is treated as empty

Issue Type: Bug Created: 2008-05-11T06:26:11.000+0000 Last Updated: 2008-07-24T09:27:09.000+0000 Status: Resolved Fix version(s): - 1.5.3 (28/Jul/08)

Reporter: Vladimir Michailenko (mich) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Validate

Related issues: - ZF-2851

Attachments:

Description

Code example:

<pre class="highlight">
Zend_Debug::dump(Zend_Validate::is('0', 'NotEmpty')); // false

As you see 0 (and '0') is treated as empty. Way to fix is replace Zend_Validate_NotEmpty:62:

<pre class="highlight">


with

Comments

Posted by Matthew Weier O'Phinney (matthew) on 2008-07-24T09:27:09.000+0000

Fix committed to trunk and 1.5 and 1.6 release branches.

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