zend_call_method
| From: | Nicolas Brousse | Date: | Tue, 07 Sep 2010 10:40:53 +0000 |
| Subject: | zend_call_method | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-7608@lists.php.net to get a copy of this message | ||
Hi,
I'm trying to call a method from one of my object using the macro
zend_call_method_with_0_params, though, when I use it I get this php
error message :
Fatal error: Class entry requested for an object without PHP class in
Unknown on line 0
I'm not sure to understand what does it mean. Any clue ?
+ zval *rv;
+ zend_function *free;
+ zend_hash_find(&intern->std.ce->function_table, "free",
sizeof("free"),(void **) &free);
+ zend_call_method_with_0_params((zval **) object,
intern->std.ce, &free , "free", &rv);
Nico.