ZF-12267: Zend_Acl "Notice: Undefined index: allPrivileges in Zend\Acl.php on line 761"

Issue Type: Bug Created: 2012-05-30T17:46:42.000+0000 Last Updated: 2012-06-06T08:02:03.000+0000 Status: Open Fix version(s): Reporter: Sergio Cabral (sergiocabral) Assignee: Ralph Schindler (ralph) Tags: - Zend_Acl

Related issues: Attachments:


When call: $acl->removeAllow(); Results: Notice: Undefined index: allPrivileges in Y:\Programa!EXE\xampp\htdocs\aplicativo\GasTurbines\library\Zend\Acl.php on line 764

Look for example code:

<pre class="highlight">
$acl = new Zend_Acl();
$acl->allow('usuario', 'padrao', 'acessar');
echo $acl->isAllowed('usuario', 'padrao', 'acessar') . "\n<br></br>";
$acl->removeAllow(); //Error here.
echo $acl->isAllowed('usuario', 'padrao', 'acessar') . "\n<br></br>";


Posted by Sergio Cabral (sergiocabral) on 2012-05-30T20:01:49.000+0000

I want clear all Allow and Deny. I do this:

$acl->removeAll(); $acl->addResource(self::RESOURCE_NAVEGACAO); $acl->addResource(self::RESOURCE_TECNICO);

Now, low priority. But, the function have a realy bug, because de notice show?

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.