zendframework/zf2 — pull request #812 by mwillbanks (2012-02-23 14:39:31+00:00)
Title: A View Model is not created when a controller returns an empty array

Prior to the view refactoring you could return an empty array and it would be assigned to the view renderer. After the view changes if you return an empty array it will skip the view. This change adds an additional field to the StdLib/IsAssocArray to allow for empty arrays - defined as having a 0 count. The listener now passes that it will allow empty.

Added new test for behavior and it works as I would have expected now.