]> granicus.if.org Git - php/commitdiff
Reverting get_method() signature change
authorZeev Suraski <zeev@php.net>
Thu, 25 Nov 2004 20:28:37 +0000 (20:28 +0000)
committerZeev Suraski <zeev@php.net>
Thu, 25 Nov 2004 20:28:37 +0000 (20:28 +0000)
@ Guys - I did my best to look for all of the changed places,
@ but I may have missed something.  If you remember other places
@ which were changed that I haven't reverted, please fix or let me know.
@ Also - Marcus, please take a look at SPL - as this particular
@ implementation took advantage of the signature change, the way I 'fixed'
@ it may very well be incorrect

ext/com_dotnet/com_handlers.c
ext/spl/spl_iterators.c
ext/standard/incomplete_class.c

index 63b4d3252e19b62c419d0f30f26084f3ecb87e04..cee0b41017598466f28be8fca638bfc50ab682b2 100644 (file)
@@ -293,13 +293,12 @@ static PHP_FUNCTION(com_method_handler)
                        INTERNAL_FUNCTION_PARAM_PASSTHRU);
 }
 
-static union _zend_function *com_method_get(zval **object_ptr, char *name, int len TSRMLS_DC)
+static union _zend_function *com_method_get(zval *object, char *name, int len TSRMLS_DC)
 {
        zend_internal_function f, *fptr = NULL;
        php_com_dotnet_object *obj;
        union _zend_function *func;
        DISPID dummy;
-       zval *object = *object_ptr;
 
        obj = CDNO_FETCH(object);
 
index 43080004f116e51dc011af58bcaef4322fceb946..d089dfaad878b20201e7f32e073481bde7d673ea 100755 (executable)
@@ -489,19 +489,19 @@ static int spl_dual_it_gets_implemented(zend_class_entry *interface, zend_class_
 }
 #endif
 
-static union _zend_function *spl_dual_it_get_method(zval **object_ptr, char *method, int method_len TSRMLS_DC)
+static union _zend_function *spl_dual_it_get_method(zval *object_ptr, char *method, int method_len TSRMLS_DC)
 {
        union _zend_function *function_handler;
        spl_dual_it_object   *intern;
 
-       intern = (spl_dual_it_object*)zend_object_store_get_object(*object_ptr TSRMLS_CC);
+       intern = (spl_dual_it_object*)zend_object_store_get_object(object_ptr TSRMLS_CC);
 
        function_handler = std_object_handlers.get_method(object_ptr, method, method_len TSRMLS_CC);
        if (!function_handler) {
                if (zend_hash_find(&intern->inner.ce->function_table, method, method_len+1, (void **) &function_handler) == FAILURE) {
                        if (Z_OBJ_HT_P(intern->inner.zobject)->get_method) {
-                               *object_ptr = intern->inner.zobject;
-                               function_handler = Z_OBJ_HT_P(*object_ptr)->get_method(object_ptr, method, method_len TSRMLS_CC);
+                               object_ptr = intern->inner.zobject;
+                               function_handler = Z_OBJ_HT_P(object_ptr)->get_method(object_ptr, method, method_len TSRMLS_CC);
                        }
                }
        }
index 88e3f1ddd7a52c6c80f8bbf313b1a4d8e9aa7ecb..49b0ed69f5328f48420bf37758d8c062ff1cf36d 100644 (file)
@@ -82,8 +82,8 @@ static int incomplete_class_has_property(zval *object, zval *member, int check_e
        return 0;
 }
 
-static union _zend_function *incomplete_class_get_method(zval **object_ptr, char *method, int method_len TSRMLS_DC) {
-       incomplete_class_message(*object_ptr, E_ERROR TSRMLS_CC);
+static union _zend_function *incomplete_class_get_method(zval *object_ptr, char *method, int method_len TSRMLS_DC) {
+       incomplete_class_message(object_ptr, E_ERROR TSRMLS_CC);
        return NULL;
 }