zend_object_handlers

From: Date: Sat, 02 Jul 2005 06:15:16 +0000
Subject: zend_object_handlers
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-17070@lists.php.net to get a copy of this message
I am not sure if this is the proper list, but I need help in getting my handlers called via the zend API. I have just begun to make an extension, and I need to make use of the call_method handler. To see if I could hook in, I defined this: static int call_method(char *method, INTERNAL_FUNCTION_PARAMETERS) {
    return 0;
} and then set the call_method handler to this with the expectation that no error would occur when an undefined method is called. However, the error remains, and it appears this function isn't even called. Moreover, I know my handler array is correct, because I tried: ......get_method = 0; the result of which was an error that said my object doesn't support methods. I even tried defining get_method as follows: static union _zend_function* get_method(zval *object, char *method, int method_len TSRMLS_DC) {
    return NULL;
} But that didn't help. Any response will be appreciated. Herr Witten

« previous php.internals (#17070) next »