Re: set_exception_handler()
| From: | Andi Gutmans | Date: | Sat, 03 Apr 2004 19:26:53 +0000 |
| Subject: | Re: set_exception_handler() | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-8921@lists.php.net to get a copy of this message | ||
In general, I have no problem with adding this consistency.
Where is a reference to $instance held until the exception occurs? I took a quick look and couldn't see it but I'm probably missing something.
Andi
At 08:13 PM 4/3/2004 +0200, Timm Friebe wrote:
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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php