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

Issue Type: Bug Created: 2009-10-09T08:50:12.000+0000 Last Updated: 2009-10-15T15:40:05.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Sylvain Filteau (sylvain) Assignee: Dolf Schimmel (Freeaqingme) (freak) Tags: - Zend_Acl

Related issues: Attachments:


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

<pre class="highlight">
$acl = new Zend_Acl();
$acl->allow('admin', 'blog', 'read');
$acl->removeAllow(array('admin'), array('blog'), null);

It results with this :

<pre class="literal">
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.


Posted by Dolf Schimmel (Freeaqingme) (freak) on 2009-10-15T15:40:02.000+0000

Fixed in trunk

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.