cvs: ZendEngine2(PHP_5_0) / zend_execute.c zend_object_handlers.c zend_object_handlers.h

From: Date: Sat, 30 Oct 2004 19:16:42 +0000
Subject: cvs: ZendEngine2(PHP_5_0) / zend_execute.c zend_object_handlers.c zend_object_handlers.h
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3124@lists.php.net to get a copy of this message
helly Sat Oct 30 15:16:42 2004 EDT Modified files: (Branch: PHP_5_0) /ZendEngine2 zend_execute.c zend_object_handlers.c zend_object_handlers.h Log: MFH change zend_object_handlers->get_method() http://cvs.php.net/diff.php/ZendEngine2/zend_execute.c?r1=1.652.2.7&r2=1.652.2.8&ty=u Index: ZendEngine2/zend_execute.c diff -u ZendEngine2/zend_execute.c:1.652.2.7 ZendEngine2/zend_execute.c:1.652.2.8 --- ZendEngine2/zend_execute.c:1.652.2.7 Wed Oct 20 20:47:11 2004 +++ ZendEngine2/zend_execute.c Sat Oct 30 15:16:38 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_execute.c,v 1.652.2.7 2004/10/21 00:47:11 andi Exp $ */ +/* $Id: zend_execute.c,v 1.652.2.8 2004/10/30 19:16:38 helly Exp $ */ #define ZEND_INTENSIVE_DEBUGGING 0 @@ -2514,7 +2514,7 @@ } /* 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))->(&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); } http://cvs.php.net/diff.php/ZendEngine2/zend_object_handlers.c?r1=1.101&r2=1.101.2.1&ty=u Index: ZendEngine2/zend_object_handlers.c diff -u ZendEngine2/zend_object_handlers.c:1.101 ZendEngine2/zend_object_handlers.c:1.101.2.1 --- ZendEngine2/zend_object_handlers.c:1.101 Wed Jul 14 05:04:13 2004 +++ ZendEngine2/zend_object_handlers.c Sat Oct 30 15:16:39 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_object_handlers.c,v 1.101 2004/07/14 09:04:13 stas Exp $ */ +/* $Id: zend_object_handlers.c,v 1.101.2.1 2004/10/30 19:16:39 helly Exp $ */ #include "zend.h" #include "zend_globals.h" @@ -666,11 +666,12 @@ } -static union _zend_function *zend_std_get_method(zval *object, char *method_name, int method_len TSRMLS_DC) +static union _zend_function *zend_std_get_method(zval **object_ptr, 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); */ http://cvs.php.net/diff.php/ZendEngine2/zend_object_handlers.h?r1=1.41&r2=1.41.2.1&ty=u Index: ZendEngine2/zend_object_handlers.h diff -u ZendEngine2/zend_object_handlers.h:1.41 ZendEngine2/zend_object_handlers.h:1.41.2.1 --- ZendEngine2/zend_object_handlers.h:1.41 Tue May 4 11:03:28 2004 +++ ZendEngine2/zend_object_handlers.h Sat Oct 30 15:16:39 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_object_handlers.h,v 1.41 2004/05/04 15:03:28 wez Exp $ */ +/* $Id: zend_object_handlers.h,v 1.41.2.1 2004/10/30 19:16:39 helly Exp $ */ #ifndef ZEND_OBJECT_HANDLERS_H #define ZEND_OBJECT_HANDLERS_H @@ -79,7 +79,7 @@ /* 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, char *method, int method_len TSRMLS_DC); +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_constructor_t)(zval *object TSRMLS_DC); /* Object maintenance/destruction */

« previous php.zend-engine.cvs (#3124) next »