ZF-3236: CLONE -value "0" is treated as empty
Description
Code example:
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:
with
Code example:
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:
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.