cvs: ZendEngine2 / zend_reflection_api.c

From: Date: Fri, 29 Aug 2003 21:46:12 +0000
Subject: cvs: ZendEngine2 / zend_reflection_api.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1738@lists.php.net to get a copy of this message
helly Fri Aug 29 17:46:12 2003 EDT Modified files: /ZendEngine2 zend_reflection_api.c Log: - Use zend_fcall_info_cache in invoke() to improve speed. # This also fixes the problem with calling static methods. Index: ZendEngine2/zend_reflection_api.c diff -u ZendEngine2/zend_reflection_api.c:1.35 ZendEngine2/zend_reflection_api.c:1.36 --- ZendEngine2/zend_reflection_api.c:1.35 Wed Aug 27 16:48:41 2003 +++ ZendEngine2/zend_reflection_api.c Fri Aug 29 17:46:12 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_reflection_api.c,v 1.35 2003/08/27 20:48:41 helly Exp $ */ +/* $Id: zend_reflection_api.c,v 1.36 2003/08/29 21:46:12 helly Exp $ */ #include "zend.h" #include "zend_API.h" #include "zend_default_classes.h" @@ -733,6 +733,7 @@ int result; int argc = ZEND_NUM_ARGS(); zend_fcall_info fci; + zend_fcall_info_cache fcc; reflection_object *intern; zend_function *fptr; @@ -755,7 +756,11 @@ fci.retval_ptr_ptr = &retval_ptr; fci.param_count = argc; fci.no_separation = 1; - /*fci.function_handler_cache = &fptr;*/ + + fcc.initialized = 1; + fcc.function_handler = fptr; + fcc.calling_scope = EG(scope); + fcc.object_pp = NULL; result = zend_call_function(&fci, NULL TSRMLS_CC); @@ -958,6 +963,7 @@ int argc = ZEND_NUM_ARGS(); int result; zend_fcall_info fci; + zend_fcall_info_cache fcc; METHOD_NOTSTATIC; @@ -1011,9 +1017,13 @@ fci.param_count = argc-1; fci.params = params+1; fci.no_separation = 1; - /*fci.function_handler_cache = &mptr;*/ - result = zend_call_function(&fci, NULL TSRMLS_CC); + fcc.initialized = 1; + fcc.function_handler = mptr; + fcc.calling_scope = EG(scope); + fcc.object_pp = object_pp; + + result = zend_call_function(&fci, &fcc TSRMLS_CC); efree(params);

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