Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13680 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92196 invoked by uid 1010); 2 Nov 2004 12:46:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 92107 invoked from network); 2 Nov 2004 12:46:40 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by pb1.pair.com with SMTP; 2 Nov 2004 12:46:40 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id iA2CkewP001719 for ; Tue, 2 Nov 2004 07:46:40 -0500 Received: from radish.cambridge.redhat.com (radish.cambridge.redhat.com [172.16.18.90]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id iA2CkYr14172 for ; Tue, 2 Nov 2004 07:46:34 -0500 Received: from radish.cambridge.redhat.com (localhost.localdomain [127.0.0.1]) by radish.cambridge.redhat.com (8.12.10/8.12.7) with ESMTP id iA2CkXBs024426 for ; Tue, 2 Nov 2004 12:46:33 GMT Received: (from jorton@localhost) by radish.cambridge.redhat.com (8.12.10/8.12.10/Submit) id iA2CkWhA024425 for internals@lists.php.net; Tue, 2 Nov 2004 12:46:32 GMT Date: Tue, 2 Nov 2004 12:46:32 +0000 To: internals@lists.php.net Message-ID: <20041102124632.GA24419@redhat.com> Mail-Followup-To: internals@lists.php.net Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: [PATCH] Zend_API.c error message tweak From: jorton@redhat.com (Joe Orton) 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++; }