[PATCH] Zend_API.c error message tweak
| From: | Joe Orton | Date: | Tue, 02 Nov 2004 12:46:32 +0000 |
| Subject: | [PATCH] Zend_API.c error message tweak | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-13680@lists.php.net to get a copy of this message | ||
HEAD/ext/spl is generating a warning at startup though it was hard to
work out which extension was to blame without the below patch!
PHP Warning: Function registration failed - duplicate name -
InfiniteIterator::next in Unknown on line 0
Index: Zend/zend_API.c
===================================================================
RCS file: /repository/ZendEngine2/zend_API.c,v
retrieving revision 1.268
diff -u -r1.268 zend_API.c
--- Zend/zend_API.c 29 Sep 2004 20:57:07 -0000 1.268
+++ Zend/zend_API.c 2 Nov 2004 12:42:41 -0000
@@ -1397,7 +1397,8 @@
}
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",
ptr->fname);
+ zend_error(error_type, "Function registration failed - duplicate name - %s%s%s",
+ scope ? scope->name : "", scope ? "::" : "",
ptr->fname);
}
ptr++;
}