cvs: ZendEngine2 / zend_API.c

From: Date: Thu, 06 Oct 2005 08:18:23 +0000
Subject: cvs: ZendEngine2 / zend_API.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4202@lists.php.net to get a copy of this message
dmitry Thu Oct 6 04:18:23 2005 EDT Modified files: /ZendEngine2 zend_API.c Log: Cleanup http://cvs.php.net/diff.php/ZendEngine2/zend_API.c?r1=1.319&r2=1.320&ty=u Index: ZendEngine2/zend_API.c diff -u ZendEngine2/zend_API.c:1.319 ZendEngine2/zend_API.c:1.320 --- ZendEngine2/zend_API.c:1.319 Wed Oct 5 15:02:27 2005 +++ ZendEngine2/zend_API.c Thu Oct 6 04:18:20 2005 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_API.c,v 1.319 2005/10/05 19:02:27 helly Exp $ */ +/* $Id: zend_API.c,v 1.320 2005/10/06 08:18:20 dmitry Exp $ */ #include "zend.h" #include "zend_execute.h" @@ -843,11 +843,10 @@ default: if (!quiet) { - zend_function *active_function = EG(function_state_ptr)->function; - char *class_name = active_function->common.scope ? active_function->common.scope->name : EMPTY_STR; + char *space; + char *class_name = get_active_class_name(&space TSRMLS_CC); zend_error(E_WARNING, "%v%s%v(): bad type specifier while parsing parameters", - class_name, - class_name[0] ? "::" : "", + class_name, space, get_active_function_name(TSRMLS_C)); } return FAILURE; @@ -860,11 +859,10 @@ if (num_args < min_num_args || num_args > max_num_args) { if (!quiet) { - zend_function *active_function = EG(function_state_ptr)->function; - char *class_name = active_function->common.scope ? active_function->common.scope->name : EMPTY_STR; + char *space; + char *class_name = get_active_class_name(&space TSRMLS_CC); zend_error(E_WARNING, "%v%s%v() expects %s %d parameter%s, %d given", - class_name, - class_name[0] ? "::" : "", + class_name, space, get_active_function_name(TSRMLS_C), min_num_args == max_num_args ? "exactly" : num_args < min_num_args ? "at least" : "at most", num_args < min_num_args ? min_num_args : max_num_args,

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