ZF-8039: Zend_Acl::removeAllow show a notice when passing null to privileges parameter


While using Zend_Acl, I encountered a problem that can be reproduce with this simple code :

$acl = new Zend_Acl();
$acl->allow('admin', 'blog', 'read');
$acl->removeAllow(array('admin'), array('blog'), null);

It results with this :

Notice:  Undefined index:  allPrivileges in lib/Zend/Acl.php on line 682

The documentation (…) indicate that it should remove allow rights to every privileges in the ACL.


Fixed in trunk