I wrote a extension to add callback to any functions
| From: | Surf Chen | Date: | Mon, 31 Mar 2008 07:46:04 +0000 |
| Subject: | I wrote a extension to add callback to any functions | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-5308@lists.php.net to get a copy of this message | ||
The extension named funcall.The source release and example can be
found on http://code.google.com/p/funcall/.
There are 3 functions in this extension currently.
fc_add_pre, add callback which will be called before certain function call.
fc_add_post, add callback which will be called after certain function call.
fc_list,return a array contain the callbacks info.
funcall is like the http://pecl.php.net/package/intercept, but funcall
is more powerful(callback can get function args, return_value and
processing time) and stable(there are some bugs in intercept and never
being fixed).
I want to add this funcall extension to pecl directory,so I announced it here.