set_exception_handler()
| From: | Timm Friebe | Date: | Sat, 03 Apr 2004 18:13:46 +0000 |
| Subject: | set_exception_handler() | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-8919@lists.php.net to get a copy of this message | ||
Hello,
I wanted to check back on the status of my patch to
zend_builtin_functions.c I sent a while ago. It changes
set_exception_handler() to accept the pseudo-type "callable" (instead of
a string referring to a global function).
Examples:
set_exception_handler('function_name');
set_exception_handler(array('class_name', 'static_method'));
set_exception_handler(array($instance, 'instance_method'));
This also makes set_exception_handler() more consistent with all the
other callback functionality, e.g. set_error_handler().
Will this patch make it into CVS?
- Timm
Attachment: [text/x-patch] zend_set_exception_handler.diff
Attachment: [text/x-patch] zend_set_exception_handler.diff