cvs: ZendEngine2 / zend_API.c

From: Date: Thu, 18 Aug 2005 06:33:44 +0000
Subject: cvs: ZendEngine2 / zend_API.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4032@lists.php.net to get a copy of this message
dmitry Thu Aug 18 02:33:44 2005 EDT Modified files: /ZendEngine2 zend_API.c Log: We don't need EMPY_STRING here. This function is execuited in non-unicode context only. http://cvs.php.net/diff.php/ZendEngine2/zend_API.c?r1=1.305&r2=1.306&ty=u Index: ZendEngine2/zend_API.c diff -u ZendEngine2/zend_API.c:1.305 ZendEngine2/zend_API.c:1.306 --- ZendEngine2/zend_API.c:1.305 Wed Aug 17 14:15:18 2005 +++ ZendEngine2/zend_API.c Thu Aug 18 02:33:44 2005 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_API.c,v 1.305 2005/08/17 18:15:18 andrei Exp $ */ +/* $Id: zend_API.c,v 1.306 2005/08/18 06:33:44 dmitry Exp $ */ #include "zend.h" #include "zend_execute.h" @@ -1971,7 +1971,7 @@ } if (ptr->flags) { if (!(ptr->flags & ZEND_ACC_PPP_MASK)) { - zend_error(error_type, "Invalid access level for %s%s%s() - access must be exactly one of public, protected or private", scope ? scope->name : EMPTY_STR, scope ? "::" : "", ptr->fname); + zend_error(error_type, "Invalid access level for %s%s%s() - access must be exactly one of public, protected or private", scope ? scope->name : "", scope ? "::" : "", ptr->fname); internal_function->fn_flags = ZEND_ACC_PUBLIC; } else { internal_function->fn_flags = ptr->flags; @@ -1996,7 +1996,7 @@ return FAILURE; } if (!internal_function->handler) { - zend_error(error_type, "Method %s%s%s() cannot be a NULL function", scope ? scope->name : EMPTY_STR, scope ? "::" : "", ptr->fname); + zend_error(error_type, "Method %s%s%s() cannot be a NULL function", scope ? scope->name : "", scope ? "::" : "", ptr->fname); zend_unregister_functions(functions, count, target_function_table TSRMLS_CC); return FAILURE; } @@ -2052,7 +2052,7 @@ } while (ptr->fname) { if (zend_hash_exists(target_function_table, ptr->fname, strlen(ptr->fname)+1)) { - zend_error(error_type, "Function registration failed - duplicate name - %s%s%s", scope ? scope->name : EMPTY_STR, scope ? "::" : "", ptr->fname); + zend_error(error_type, "Function registration failed - duplicate name - %s%s%s", scope ? scope->name : "", scope ? "::" : "", ptr->fname); } ptr++; }

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