]> granicus.if.org Git - php/commitdiff
We don't need EMPY_STRING here. This function is execuited in non-unicode context...
authorDmitry Stogov <dmitry@php.net>
Thu, 18 Aug 2005 06:33:44 +0000 (06:33 +0000)
committerDmitry Stogov <dmitry@php.net>
Thu, 18 Aug 2005 06:33:44 +0000 (06:33 +0000)
Zend/zend_API.c

index 301b54eddac46b5e38a76d672d52e2f3d6956d6a..a0bce6caf0b5ff3d2fee30414d2ba25491163d27 100644 (file)
@@ -1971,7 +1971,7 @@ ZEND_API int zend_register_functions(zend_class_entry *scope, zend_function_entr
                }
                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 @@ ZEND_API int zend_register_functions(zend_class_entry *scope, zend_function_entr
                                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 @@ ZEND_API int zend_register_functions(zend_class_entry *scope, zend_function_entr
                }
                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++;
                }