Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25671 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36040 invoked by uid 1010); 13 Sep 2006 18:27:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 36025 invoked from network); 13 Sep 2006 18:27:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Sep 2006 18:27:45 -0000 X-Host-Fingerprint: 207.126.230.225 nat-dip4.corp.yahoo.com Received: from [207.126.230.225] ([207.126.230.225:8188] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0E/57-25108-A5D48054 for ; Wed, 13 Sep 2006 14:27:09 -0400 Message-ID: <0E.57.25108.A5D48054@pb1.pair.com> To: internals@lists.php.net References: <533507011@web.de> Date: Wed, 13 Sep 2006 11:15:16 -0700 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Original X-Posted-By: 207.126.230.225 Subject: Re: [PHP-DEV] PHP5 extensions: using existing functionnames as method From: pollita@php.net ("Sara Golemon") > 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. > Fair enough....I must not have read that in my review of the thread... >>> #define string_G(v) (string_globals.v) > 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. > ext_skel would have upper-cased it for you when you ran the script... but yeah, no big since you're not using extension globals anyway... Just some cruft to clean out.... > If there is any interest in OO-Representation of primitive types let me > know, > So I could release them as PECL-extension. > Ah yes, that was one thing I was also going to mention. Using primitive/common names is discouraged for non-core extensions (at least the ones we release on pecl.php.net and can exercise some amount of control over). For an answer to why: Refer to Steph's summary of the Date Wars (pear in that case, but the same concept applies). -Sara