Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25661 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52516 invoked by uid 1010); 13 Sep 2006 12:44:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 52501 invoked from network); 13 Sep 2006 12:44:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Sep 2006 12:44:32 -0000 Authentication-Results: pb1.pair.com header.from=danhen@email.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=danhen@email.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain email.de from 217.72.192.248 cause and error) X-PHP-List-Original-Sender: danhen@email.de X-Host-Fingerprint: 217.72.192.248 fmmailgate07.web.de Linux 2.4/2.6 Received: from [217.72.192.248] ([217.72.192.248:53571] helo=fmmailgate07.web.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 98/DC-55513-F2DF7054 for ; Wed, 13 Sep 2006 08:44:32 -0400 Reveived: from web.de by fmmailgate07.web.de (Postfix) with SMTP id 450324F8; Wed, 13 Sep 2006 14:44:28 +0200 (CEST) Received: from [84.184.170.116] by freemailng6004.web.de with HTTP; Wed, 13 Sep 2006 14:44:27 +0200 Date: Wed, 13 Sep 2006 14:44:27 +0200 Message-ID: <533273877@web.de> MIME-Version: 1.0 To: pierre.php@gmail.com Cc: internals@lists.php.net Organization: http://freemail.web.de/ X-Sender: danhen@web.de Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Subject: =?iso-8859-15?Q?Re:_[PHP-DEV]_PHP5_extensions:_using_existing_function?= =?iso-8859-15?Q?names_as_method_names?= From: danhen@email.de >It is possible to name a method like an existing function, I'm not sure >what you are doing exactly but it works here. I've tried: STRING_METHOD(String, trim) {...} (Yes, I'm trying to build a string class) that means that I also redefinied the Macros. Then I've changed the Macros from PHP_METHOD and PHP_ME to ZEND_NAMED_FUNCTION and ZEND_FENTRY. Still on startup "PHP Warning: Function registration failed - duplicate name - trim" appears. >When your class is called zip and you have a function called zip_open, >it will conflict with the function name when you build against php < >5.2.0. It is fixed in 5.2 and a work around exists, see ext/zip for an >example. I haven't found any real differences (but now I know that there is more than one way to create a class). So I will have to wait for 5.2 to get a trim-method? Daniel