New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event handler improvements (cont.) #555
Conversation
Changed to sort on add from sort on process for efficiency. Some events (e.g. AUTH_ACL_CHECK) could be trigged many times in a single page request.
Event handler improvements (cont.)
@michitux - did you get a look at this (it includes changing hook sorting to hook add)? |
Yes, I've looked at the code. Your solution for the sorting is great as for most events it won't sort anything. I think I've seen at least one plugin that accesses _hooks in order to add itself as first call (though I don't remember which) so this will probably break plugins. I think this is okay as plugins were never supposed to access it, but we should at least mention it in the changes. |
sorr, in what version is this in? |
Its not in any released version (yet). It will be in the next release. Its currently available from github master branch. |
Swap sorting of hook array from event processing to trigger registration for efficiency.
Plus more PHP 5 updates.