Description

When using Zend_Json View Helper with version ZF 1.12.0 get this warning:

array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in Zend/View/Helper/Json.php on line 67

This was not an issue with my previous version ZF 1.10.8.

Here it is why, I guess: see in Zend/View/Helper/Json.php :

The part where $encodeData is set, it uses a variable $keepLayouts as second argument for array_key_exists().
But such $keepLayouts is not an array nor an object anymore! In fact it was just assigned to a boolean value two lines above!

This bug was not here in version 1.10.8 because the $encodeData stuff has been added in a later version.

A possible solution may be to use the variable $options to test with array_key_exists(), but please check it out!