ZF-12286: Zend_Validate_NotEmpty throws "Array to string conversion" notice under PHP 5.4


When validating an empty array with Zend_Validate_NotEmpty then PHP 5.4 throws an "Array to string conversion" notice.

This is a new feature in PHP 5.4. See:… {quote} Converting an array to a string will now generate an E_NOTICE level error, but the result of the cast will still be the string "Array". {quote}

Code to reproduce:

$validator = new Zend_Validate_NotEmpty();

I think this is a more general problem because the error is located in the class Zend_Validate_Abstract.


This has been fixed in SVN trunk with r24807 (see ZF-11906)