Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56112 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18738 invoked from network); 7 Nov 2011 17:23:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Nov 2011 17:23:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.177 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.216.177 mail-qy0-f177.google.com Received: from [209.85.216.177] ([209.85.216.177:43275] helo=mail-qy0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 45/C5-13242-81418BE4 for ; Mon, 07 Nov 2011 12:23:37 -0500 Received: by qyk10 with SMTP id 10so4333780qyk.8 for ; Mon, 07 Nov 2011 09:23:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=NU2ANCPu9+Q7yXIohCuG3wCTwHz0R4Eu53W+op1KuKI=; b=RuAgLkcLqjx5aPPFfBCeV4LS7iZWZ80uEDiOlszhx3CRcyNkRAPnl1xf5V/uQazYyF Kk7Q3suuw2cASqeMoez5T+RQtberKWQDC7Fj+up3nEcBgL91xlFSp8DDBB5TjTDARfSu +/44bL7J6tDRyTCP2SXEKYR5XEcM20xzX2KYM= MIME-Version: 1.0 Received: by 10.229.36.202 with SMTP id u10mr3207701qcd.203.1320686613818; Mon, 07 Nov 2011 09:23:33 -0800 (PST) Received: by 10.229.6.202 with HTTP; Mon, 7 Nov 2011 09:23:33 -0800 (PST) In-Reply-To: <4EB810BB.5030208@lsces.co.uk> References: <4EB80053.7050606@php.net> <4EB80846.7090302@lsces.co.uk> <4EB810BB.5030208@lsces.co.uk> Date: Mon, 7 Nov 2011 12:23:33 -0500 Message-ID: To: Lester Caine Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] SplClassLoader RFC Voting phase From: ircmaxell@gmail.com (Anthony Ferrara) Well, with respect to that, are there any examples of where PHP currently "reserves the namespace"? I can declare functions/classes for every single disablable/PECL extension right now. So is there even a method to "reserve a namespace", yet alone enforce that in core? And with respect to the re-compile, what usually happens is that the windows builds ship with DLLs of the compiled extensions. So it's not a "part of the core compile", but an extension that can be enabled via php.ini (as is currently working with apc, mbstring, mysql, mysqli, etc). Anthony On Mon, Nov 7, 2011 at 12:09 PM, Lester Caine wrote: > Anthony Ferrara wrote: >> >> Lester, >> >> I think he was referring to something like the MySQL/bcmath/etc >> extension where it ships in core, but is disabled by default (requires >> a compile-time option). >> >> I think what you interpreted it as is basically just what PECL is for >> and how it works? =A0Considering that it would basically be just `pecl >> install PSRClassLoader`? =A0And at that point there's no reason for >> anything in the core (even reserving a namespace). =A0That's how other >> extensions (even popular ones like apc) work now... >> >> Unless I'm misunderstanding what you mean...? > > Actually the "reserve the namespace" is probably the important piece of t= he > jigsaw? > Also while Linux 'installs' can easily 'recompile', windows builds are > necessarily pre-compiled, so what is compiled in and what is available vi= a > an extension becomes more important. > >> On Mon, Nov 7, 2011 at 11:33 AM, Lester Caine =A0wro= te: >>> >>> Sebastian Bergmann wrote: >>>>> >>>>> 1- The same as you wrote. Having it in SPL and in PHP 5.4 >>>>>> >>>>>> =A02- Have it in PHP 5.4 as an external extension (FIG, PSR or PSG), >>>>>> =A0enabled by default. >>>>>> =A03- As an external extension, disabled by default. This would requ= ire >>>>>> =A0PHP core to reserve the namespace for us. >>>> >>>> =A0You are missing 4: not have it at all (which would get my +1). >>> >>> 3 would be acceptable if external extensions were downloaded separately >>> to >>> the core distribution ... but I suppose that IS 4 ;) >>> Isn't it about time we considered a better distribution model for >>> additions >>> like this? > > > -- > Lester Caine - G8HFL > ----------------------------- > Contact - http://lsces.co.uk/wiki/?page=3Dcontact > L.S.Caine Electronic Services - http://lsces.co.uk > EnquirySolve - http://enquirysolve.com/ > Model Engineers Digital Workshop - http://medw.co.uk// > Firebird - http://www.firebirdsql.org/index.php > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >