Re: Static Destructor methods

From: Date: Sat, 06 Apr 2002 11:50:58 +0000
Subject: Re: Static Destructor methods
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-5214@lists.php.net to get a copy of this message
Richard Heyes wrote: > > > 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. > call_user_func_array($func, $args) is not yet full documented, but accepts this params as $func: array(object &$obj, string $method): Call a method from a created object array(string $class, string $method): Static method call string $function: Simple function call Tomas V.V.Cox

« previous php.pear.dev (#5214) next »