Fork of the pecl extension "funcall"
C PHP
Switch branches/tags
Nothing to show
Latest commit 4ff6129 Dec 5, 2013 @beberlei beberlei Merge pull request #1 from jocel1/master
Fix double free + pointers reassign on shutdown
Permalink
Failed to load latest commit information.
tests
.gitignore Add two more files to .gitignore Jan 30, 2011
CREDITS
EXPERIMENTAL
INSTALL Initial commit Jan 30, 2011
LICENSE
README.markdown
TODO
config.m4
config.w32
funcall.c
funcall.php
package.xml
php_funcall.h

README.markdown

funcall

Original repo: http://code.google.com/p/funcall/

What?

Register pre and post processing callbacks for any function or method.

Changelog

  • Rework internal datastructure from a list to a hashtable to optimize for large callback stacks.

TODO

  • Refactor to pass method/function name to callbacks as first argument
  • Refactor callbacks to allow any PHP callback not just strings
  • Allow to modify arguments in pre callbacks.
  • Reimplement fc_list() as fc_list_all()
  • Implement fc_list_callbacks($function)
  • Implement way to stop event propagation and function execution gracefully
  • Implement ways to remove callbacks (How?)
  • Add fc_add_instance_pre($instance, $method, $callback), fc_add_instance_post($instance, $method, $callback) methods to register callbacks only executed for a sepecific instance only.
  • Add hook for class instantiation to allow lazy loading of callbacks for instances or classes.