ZF-12140: Zend_Validate NotEmpty types empty_array should be array.

Issue Type: Docs: Problem Created: 2012-04-06T06:52:21.000+0000 Last Updated: 2012-04-06T06:52:21.000+0000 Status: Open Fix version(s): Reporter: netroby (netroby) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate

Related issues: Attachments:


empty_array: Returns FALSE when an empty array is given.

should be correct to

array: Returns FALSE when an empty array is given.

by code testing:

when i tried to using

<pre class="highlight">
if (Zend_Validate::is($this->view->user, 'NotEmpty', array('empty_array'))) 

the Zend Framework would halt by errors:

An error occurred Application error Exception information:

Message: Unknown type

if i changes the code to :

<pre class="highlight">

if (Zend_Validate::is($this->view->user, 'NotEmpty', array('array'))) 

everything should be fine.


No comments to display

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.