Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24750 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42814 invoked by uid 1010); 20 Jul 2006 09:18:48 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 42798 invoked from network); 20 Jul 2006 09:18:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jul 2006 09:18:48 -0000 X-Host-Fingerprint: 80.123.98.46 unknown Received: from ([80.123.98.46:23653] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 5C/10-29121-67A4FB44 for ; Thu, 20 Jul 2006 05:18:48 -0400 Message-ID: <5C.10.29121.67A4FB44@pb1.pair.com> To: internals@lists.php.net Date: Thu, 20 Jul 2006 11:19:28 +0200 User-Agent: Thunderbird 1.5.0.4 (X11/20060615) MIME-Version: 1.0 References: <10845a340607200129j16aaec3bl5749a9e5092856c8@mail.gmail.com> In-Reply-To: <10845a340607200129j16aaec3bl5749a9e5092856c8@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 80.123.98.46 Subject: Re: [PHP-DEV] PECL/Core, autoloading and namespaces. From: mike@php.net (Michael Wallner) Richard Quadling wrote: > With recent discussions about getting extensions in or out of Core > and out or into PECL, why are ANY extensions part of core? I think mainly because we don't have the infrastructure yet to distribute extensions per-version (PHP-wise). > > All platforms allow for configuration of allowable extensions, either > by compilation, or by config file (ini) changes or by the use of dl > (though this can now be restricted within PHP6 AFAIK). dl will only be allowed for CLI/CGI. > One thing I can think of which would be an serious issue is > interdepenedance. If ext_A requires ext_B, I don't know what the > consequences would be. But again, a documentation issue to describe > dependencies - something like PEAR does maybe. Extension dependencies are implemented since 5.1 IIRC. > 1 - What determines core or PECL? > 2 - If extensions are moved out of core into PECL, do interdependency > problems exist? See above. > 3 - Are there any mechanisms for autoloading PECL extensions? No, there's no autoloading of any extensions; see above reg. dl(). > 4 - Could namespaces be used as an extension autoloading mechanism? > Hmmm. .dll or .so (I think), so we would need a OS specific constant > (like DIRECTORY_SEPARATOR / PATH_SEPARATOR) - maybe > EXTENSION_EXTENSION (Ha!). There's PHP_SHLIB_SUFFIX, which leaves the 'php_' prefix oddity that differs on *nix/win32. -- Michael