Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25668 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16441 invoked by uid 1010); 13 Sep 2006 17:55:03 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 16426 invoked from network); 13 Sep 2006 17:55:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Sep 2006 17:55:03 -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.247 cause and error) X-PHP-List-Original-Sender: danhen@email.de X-Host-Fingerprint: 217.72.192.247 fmmailgate06.web.de Linux 2.4/2.6 Received: from [217.72.192.247] ([217.72.192.247:47957] helo=fmmailgate06.web.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EF/04-25108-4D548054 for ; Wed, 13 Sep 2006 13:55:03 -0400 Reveived: from web.de by fmmailgate06.web.de (Postfix) with SMTP id CAEB5364 for ; Wed, 13 Sep 2006 19:54:25 +0200 (CEST) Received: from [84.184.181.175] by freemailng6003.web.de with HTTP; Wed, 13 Sep 2006 19:54:25 +0200 Date: Wed, 13 Sep 2006 19:54:25 +0200 Message-ID: <533507011@web.de> MIME-Version: 1.0 To: 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?= From: danhen@email.de >Solution: Change "string_functions" to "NULL" in zend_module_entry. Thanks! You rescued my extension. Now I can finish and test the class. >> #define STRING_METHOD(function_name) \ >> ZEND_NAMED_FUNCTION(c_stringclass_##function_name) >> #define STRING_ME(name, arg_info, flags) \ >> ZEND_FENTRY(name, c_stringclass_ ##name, arg_info, flags) >> >There's nothing special about these macros except for the specific >function prefix you assign them. Any particular reason you're using them? As I wrote, I've looked around existing extensions which redefine function names (SPL and zip) and there I found those Macro-Definitions and thought this could be the solution. >> #ifdef ZTS >> #define string_G(v) TSRMG(string_globals_id, zend_string_globals *, v) >> #else >> #define string_G(v) (string_globals.v) >> #endif >It's common practice to use all uppercase for TSRM macros. Not really >an issue, but worth a mentiCONFORM!!!!! YOU MUST CONFORM!!!! :) Actually I don't know where this come from and why it's in. I don't have any globals. ext.skel? Copied from somewhere? Don't know. If there is any interest in OO-Representation of primitive types let me know, So I could release them as PECL-extension. Daniel BTW Can anyone explain, why the mailservice I'm using is producing such a crap in the subject and what could be done to prevent this for future posts?