As said earlier:
I would personally expect a getRegisteredRoles() or
getRegisteredResources() (ZF-7895) to return a single
dimensional-array containing the name of all roles/resources. The
methods as implemented by this patch however return a multidimensional
array with all the roles&resources objects, which I kinda feel is unworkable. To check if a certain resource has been registered already someone would now have to flatten the tree himself first and then call something like in_array(); or array_key_exists(). I can think of no usecase in which it's useful to have the entire resources tree as a multidimensional array. That is handy only to Zend_Acl itself.
Patch adds method to retrieve registered resources