However the SORT_NUMERIC thing gave me a new idea to simplify the data structure and remove a foreach while triggering!! Thanks :D

----------------------------------------
Michaël Gallego

Tel. : 06-98-82-62-38
mic.gallego@gmail.com





Le 15 nov. 2013 à 10:11, Marc Bennewitz <notifications@github.com> a écrit :

> In library/Zend/EventManager/EventManager.php:
> 
> > +    {
> > +        // Initial value of stop propagation flag should be false
> > +        $event = $event ?: new Event();
> > +        $event->stopPropagation(false);
> > +
> > +        $responses = array();
> > +
> > +        // We cannot use union (+) operator as it merges numeric indexed keys
> > +        $listeners = array_merge_recursive(
> > +            $this->getListeners($eventName),
> > +            $this->getListeners('*'),
> > +            $this->getSharedListeners($eventName),
> > +            $this->getSharedListeners('*')
> > +        );
> > +
> > +        krsort($listeners);
> Because the keys are strings actually - you have to set SORT_NUMERIC else the key 5.0 higher than 40.0
> 
> —
> Reply to this email directly or view it on GitHub.
>