cvs: ZendEngine2 / zend_execute_API.c

From: Date: Fri, 12 Aug 2005 14:58:29 +0000
Subject: cvs: ZendEngine2 / zend_execute_API.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4000@lists.php.net to get a copy of this message
dmitry Fri Aug 12 10:58:29 2005 EDT Modified files: /ZendEngine2 zend_execute_API.c Log: Fixed user function call in unicode mode http://cvs.php.net/diff.php/ZendEngine2/zend_execute_API.c?r1=1.332&r2=1.333&ty=u Index: ZendEngine2/zend_execute_API.c diff -u ZendEngine2/zend_execute_API.c:1.332 ZendEngine2/zend_execute_API.c:1.333 --- ZendEngine2/zend_execute_API.c:1.332 Thu Aug 11 19:34:56 2005 +++ ZendEngine2/zend_execute_API.c Fri Aug 12 10:58:29 2005 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_execute_API.c,v 1.332 2005/08/11 23:34:56 andrei Exp $ */ +/* $Id: zend_execute_API.c,v 1.333 2005/08/12 14:58:29 dmitry Exp $ */ #include <stdio.h> #include <signal.h> @@ -765,10 +765,10 @@ EX(function_state).function = Z_OBJ_HT_PP(fci->object_pp)->get_method(fci->object_pp, Z_UNIVAL_P(fci->function_name), Z_UNILEN_P(fci->function_name) TSRMLS_CC); if (EX(function_state).function && calling_scope != EX(function_state).function->common.scope) { - char *function_name_lc = zend_str_tolower_dup(Z_STRVAL_P(fci->function_name), Z_STRLEN_P(fci->function_name)); - if (zend_hash_find(&calling_scope->function_table, function_name_lc, fci->function_name->value.str.len+1, (void **) &EX(function_state).function)==FAILURE) { + void *function_name_lc = zend_u_str_tolower_dup(Z_TYPE_P(fci->function_name), Z_UNIVAL_P(fci->function_name), Z_UNILEN_P(fci->function_name)); + if (zend_u_hash_find(&calling_scope->function_table, Z_TYPE_P(fci->function_name), function_name_lc, fci->function_name->value.str.len+1, (void **) &EX(function_state).function)==FAILURE) { efree(function_name_lc); - zend_error(E_ERROR, "Cannot call method %s::%s() or method does not exist", calling_scope->name, Z_STRVAL_P(fci->function_name)); + zend_error(E_ERROR, "Cannot call method %v::%R() or method does not exist", calling_scope->name, Z_TYPE_P(fci->function_name), Z_UNIVAL_P(fci->function_name)); } efree(function_name_lc); }

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