Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56116 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24785 invoked from network); 7 Nov 2011 17:37:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Nov 2011 17:37:06 -0000 Authentication-Results: pb1.pair.com header.from=guilhermeblanco@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=guilhermeblanco@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.42 as permitted sender) X-PHP-List-Original-Sender: guilhermeblanco@gmail.com X-Host-Fingerprint: 209.85.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:64965] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E8/07-13242-04718BE4 for ; Mon, 07 Nov 2011 12:37:05 -0500 Received: by bkbzt4 with SMTP id zt4so2665725bkb.29 for ; Mon, 07 Nov 2011 09:37:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=A+NRkD0JGOAI5jhYietmTQZSVtlCRk5MPktgK+Rrq3A=; b=dQFC6pzwyg31NuUO6GQrVISNX5SkRe+Os+39v82cHWhM02fieedSw1KUO3f1NgVMZd WLB2ZLkGM5r74wqkHdlKkrCGqgS+zZQZFE5zdvUw/SIiMNh4r1CdO7KwkdBp+FUCaB9L oewGi152ibjoOqjdiXQrWNDY+B0qSgzpnMAbs= Received: by 10.182.174.106 with SMTP id br10mr9339853obc.40.1320687421134; Mon, 07 Nov 2011 09:37:01 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.221.71 with HTTP; Mon, 7 Nov 2011 09:36:40 -0800 (PST) In-Reply-To: References: <4EB80053.7050606@php.net> <4EB80846.7090302@lsces.co.uk> <4EB810BB.5030208@lsces.co.uk> Date: Mon, 7 Nov 2011 15:36:40 -0200 Message-ID: To: Anthony Ferrara Cc: Lester Caine , PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] SplClassLoader RFC Voting phase From: guilhermeblanco@gmail.com ("guilhermeblanco@gmail.com") Hi, It seems we would never reach some consensus, so I prefer to stick to the voting process. Looks like it's another battle between core developers and framework core developers, where the first ones don't see a benefit at all and have to opt for a side while the other side is eagerly requesting the feature. Point #4 would probably turn ClassLoader useless, mainly because shared hosting users would never have the ability to install a PECL extension their own. That way, frameworks would still require to bundle their own ClassLoader, turning the proposal of all this effort useless. The idea is to have something native, not pluggable by a few. Cheers, On Mon, Nov 7, 2011 at 3:23 PM, Anthony Ferrara wrote= : > Well, with respect to that, are there any examples of where PHP > currently "reserves the namespace"? =C2=A0I can declare functions/classes > for every single disablable/PECL extension right now. =C2=A0So 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. =C2=A0So it's n= ot > 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? =C2=A0Considering that it would basically be just `pe= cl >>> install PSRClassLoader`? =C2=A0And at that point there's no reason for >>> anything in the core (even reserving a namespace). =C2=A0That's how oth= er >>> 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 = the >> jigsaw? >> Also while Linux 'installs' can easily 'recompile', windows builds are >> necessarily pre-compiled, so what is compiled in and what is available v= ia >> an extension becomes more important. >> >>> On Mon, Nov 7, 2011 at 11:33 AM, Lester Caine =C2= =A0wrote: >>>> >>>> Sebastian Bergmann wrote: >>>>>> >>>>>> 1- The same as you wrote. Having it in SPL and in PHP 5.4 >>>>>>> >>>>>>> =C2=A02- Have it in PHP 5.4 as an external extension (FIG, PSR or P= SG), >>>>>>> =C2=A0enabled by default. >>>>>>> =C2=A03- As an external extension, disabled by default. This would = require >>>>>>> =C2=A0PHP core to reserve the namespace for us. >>>>> >>>>> =C2=A0You are missing 4: not have it at all (which would get my +1). >>>> >>>> 3 would be acceptable if external extensions were downloaded separatel= y >>>> 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 >> >> > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 Guilherme Blanco Mobile: +55 (11) 8118-4422 MSN: guilhermeblanco@hotmail.com S=C3=A3o Paulo - SP/Brazil