Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.9.0, 1.9.1
-
Fix Version/s: 1.9.2
-
Component/s: Zend_Validate
-
Labels:None
-
Tags:
Description
Zend_Validate_NotEmpty doesn't accept anything else then string, int, float, bool but it was. Now object, arrays, etc are returnd as "empty"
Issue Links
| This issue is dependecy of: | ||||
| ZF-7449 | Directive $element->setRegisterInArrayValidator(false) doesn't work anymore |
|
|
|
No they're not.
You should look which sort of failure is returned.
In the above case you get "Invalid type given, value should be float, string, or integer".
I agree that Arrays are missing.
But a object can never be empty.
To check a object for emptyness is quite useless and in my eyes a failure.
Same for ressources.