]> granicus.if.org Git - php/commitdiff
Reverting get_method() signature change
authorZeev Suraski <zeev@php.net>
Thu, 25 Nov 2004 20:26:48 +0000 (20:26 +0000)
committerZeev Suraski <zeev@php.net>
Thu, 25 Nov 2004 20:26:48 +0000 (20:26 +0000)
Zend/zend_execute.c
Zend/zend_execute_API.c
Zend/zend_extensions.h
Zend/zend_object_handlers.c
Zend/zend_object_handlers.h

index fbf971a6b38b1d7db995c1b7e328315b83514076..f84a77ba9236ff7a4d53a982ca55403c303331af 100644 (file)
@@ -2514,7 +2514,7 @@ int zend_init_method_call_handler(ZEND_OPCODE_HANDLER_ARGS)
                }
 
                /* First, locate the function. */
-               EX(fbc) = Z_OBJ_HT_P(EX(object))->get_method(&EX(object), function_name_strval, function_name_strlen TSRMLS_CC);
+               EX(fbc) = Z_OBJ_HT_P(EX(object))->get_method(EX(object), function_name_strval, function_name_strlen TSRMLS_CC);
                if (!EX(fbc)) {
                        zend_error(E_ERROR, "Call to undefined method %s::%s()", Z_OBJ_CLASS_NAME_P(EX(object)), function_name_strval);
                }
index ac029eafba1488b202419aa859af7cb3f53a1bf2..de7a9f9fd2824f66f746638ac3b8a33ffe027f6e 100644 (file)
@@ -685,7 +685,7 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS
                                zend_error(E_ERROR, "Object does not support method calls");
                        }
                        EX(function_state).function = 
-                               Z_OBJ_HT_PP(fci->object_pp)->get_method(fci->object_pp, Z_STRVAL_P(fci->function_name), Z_STRLEN_P(fci->function_name) TSRMLS_CC);
+                               Z_OBJ_HT_PP(fci->object_pp)->get_method(*fci->object_pp, Z_STRVAL_P(fci->function_name), Z_STRLEN_P(fci->function_name) TSRMLS_CC);
                } else if (calling_scope) {
                        char *function_name_lc = zend_str_tolower_dup(Z_STRVAL_P(fci->function_name), Z_STRLEN_P(fci->function_name));
 
index fb26c3cb3516de2fb44012e006aa3feb22a81002..7bd15e8f71b38f19f37e0c8239d193073cd5cce1 100644 (file)
@@ -27,7 +27,7 @@
 /* The first number is the engine version and the rest is the date.
  * This way engine 2 API no. is always greater than engine 1 API no..
  */
-#define ZEND_EXTENSION_API_NO  220041030
+#define ZEND_EXTENSION_API_NO  220040412
 
 typedef struct _zend_extension_version_info {
        int zend_extension_api_no;
index 8b7d5bbff00ab01da9ca5d0495bcdebd00f88c0d..7965bb0eb3f0ce96e5b3dc19db57d96823a909fb 100644 (file)
@@ -666,12 +666,11 @@ ZEND_API int zend_check_protected(zend_class_entry *ce, zend_class_entry *scope)
 }
 
 
-static union _zend_function *zend_std_get_method(zval **object_ptr, char *method_name, int method_len TSRMLS_DC)
+static union _zend_function *zend_std_get_method(zval *object, char *method_name, int method_len TSRMLS_DC)
 {
        zend_object *zobj;
        zend_function *fbc;
        char *lc_method_name;
-       zval *object = *object_ptr;
        
        lc_method_name = do_alloca(method_len+1);
        /* Create a zend_copy_str_tolower(dest, src, src_length); */
index 92016789b07e8befab083020c73877aed25af21e..4c8d12eda38023ad2af30f92c23777709d14e339 100644 (file)
@@ -79,7 +79,7 @@ typedef HashTable *(*zend_object_get_properties_t)(zval *object TSRMLS_DC);
 /* Andi - EX(fbc) (function being called) needs to be initialized already in the INIT fcall opcode so that the parameters can be parsed the right way. We need to add another callback for this.
  */
 typedef int (*zend_object_call_method_t)(char *method, INTERNAL_FUNCTION_PARAMETERS);
-typedef union _zend_function *(*zend_object_get_method_t)(zval **object_ptr, char *method, int method_len TSRMLS_DC);
+typedef union _zend_function *(*zend_object_get_method_t)(zval *object, char *method, int method_len TSRMLS_DC);
 typedef union _zend_function *(*zend_object_get_constructor_t)(zval *object TSRMLS_DC);
 
 /* Object maintenance/destruction */