So, the implementation can not return role instances, just IDs. I think this should be documented unequivocally or corrected in case if instances have been mentioned.

And IMHO: On the one hand current behavior is reasonable, but in case if custom roles implementation is necessary, Zend_Acl can not be used as unique roles registry. It is not a catastrophe, but not so comfortably as well.

Comments

Posted by Andries Seutens (andries) on 2010-12-17T03:30:52.000+0000

This is expected, as there is a unittest in place that verifies this behaviour.

If you want access to the role instances, you could simply subclass Zend_Acl: