Re: Object method as handler functions in PHP4/Zend

From: Date: Tue, 29 Jun 1999 13:39:34 +0000
Subject: Re: Object method as handler functions in PHP4/Zend
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-7802@lists.php.net to get a copy of this message
Manuel Lemos wrote: > Unfortunately, some core PHP functions take names of global functions > parameters for callback handlers. I say unfortunately because sometimes I > need to have a callback function to call a method of a given object, and since > currently there is no way to specify a object method as call back handler > function, I have to use a global stub function. > > This is not good because I need have access to context that is provided by > the object, so I have resort to global variables. For those that question > it, global variables are not bad just because a programming teached said > so, but because: Good call, Manuel. This is exactly the kind of functionality I also wished we had in PHP. -Andrey * 2 + 2 = 5 for extremely large values of 2. *

« previous php.dev (#7802) next »