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

Description

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


$acl = new Zend_Acl();
$acl->addRole('admin');
$acl->addResource('blog');
$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 (http://framework.zend.com/manual/en/…) indicate that it should remove allow rights to every privileges in the ACL.

Comments

Fixed in trunk