Re: calling protected PHP_METHOD via call_user_function; missing context ??
| From: | Johannes Schlüter | Date: | Tue, 30 Dec 2008 21:11:39 +0000 |
| Subject: | Re: calling protected PHP_METHOD via call_user_function; missing context ?? | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-6027@lists.php.net to get a copy of this message | ||
On Tue, 2008-12-30 at 13:11 -0700, "Nathan Nobbe" wrote:
> call_user_function(&this_ce->function_table, &this, callback, &retval,
> 0,
> (zval**)NULL TSRMLS_CC);
use zend_call_method - the second parameter there is the CE of the
calling scope. See Zend/zend_interfaces.h there are few wrappers, too.
johannes