RE: [PEAR-DEV] Static Destructor methods
| From: | Richard Heyes | Date: | Sat, 06 Apr 2002 11:40:48 +0000 |
| Subject: | RE: [PEAR-DEV] Static Destructor methods | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-5213@lists.php.net to get a copy of this message | ||
> function _PEAR_call_destructors()
> {
> ...
> foreach($GLOBALS['_PEAR_Static_Funcs'] as $func => $args) {
> call_user_func_array($func, $args);
> }
> }
Well call_user_func_array() doesn't handle static methods, like so:
call_user_func_array('File::_File', $args);
So it would need to be eval() afaik.
--
Richard Heyes
"If you have any trouble sounding condescending,
find a Unix user to show you how it's done." - Scott Adams