cvs: ZendEngine2 / zend_API.c

From: Date: Mon, 30 Apr 2007 19:51:20 +0000
Subject: cvs: ZendEngine2 / zend_API.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-5762@lists.php.net to get a copy of this message
johannes Mon Apr 30 19:51:20 2007 UTC Modified files: /ZendEngine2 zend_API.c Log: - Fix "f" modifier for zend_parse_parameters_ex in case of a __call call (fixes Zend/tests/bug19859.phpt and Zend/tests/bug34260.phpt) http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_API.c?r1=1.428&r2=1.429&diff_format=u Index: ZendEngine2/zend_API.c diff -u ZendEngine2/zend_API.c:1.428 ZendEngine2/zend_API.c:1.429 --- ZendEngine2/zend_API.c:1.428 Mon Apr 16 18:50:05 2007 +++ ZendEngine2/zend_API.c Mon Apr 30 19:51:20 2007 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_API.c,v 1.428 2007/04/16 18:50:05 johannes Exp $ */ +/* $Id: zend_API.c,v 1.429 2007/04/30 19:51:20 johannes Exp $ */ #include "zend.h" #include "zend_execute.h" @@ -2867,17 +2867,24 @@ fci->size = sizeof(*fci); fci->function_table = ce ? &ce->function_table : EG(function_table); fci->object_pp = obj; - fci->function_name = NULL; + fci->function_name = callable; fci->retval_ptr_ptr = NULL; fci->param_count = 0; fci->params = NULL; fci->no_separation = 1; fci->symbol_table = NULL; - fcc->initialized = 1; - fcc->function_handler = func; - fcc->calling_scope = ce; - fcc->object_pp = obj; + if (ZEND_U_EQUAL(ZEND_STR_TYPE, func->common.function_name, USTR_LEN(func->common.function_name), ZEND_CALL_FUNC_NAME, sizeof(ZEND_CALL_FUNC_NAME)-1)) { + fcc->initialized = 0; + fcc->function_handler = NULL; + fcc->calling_scope = NULL; + fcc->object_pp = NULL; + } else { + fcc->initialized = 1; + fcc->function_handler = func; + fcc->calling_scope = ce; + fcc->object_pp = obj; + } return SUCCESS; }

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