Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55930 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75307 invoked from network); 24 Oct 2011 16:56:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Oct 2011 16:56:04 -0000 Authentication-Results: pb1.pair.com header.from=david.coallier@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=david.coallier@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.170 as permitted sender) X-PHP-List-Original-Sender: david.coallier@gmail.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:55615] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 50/35-43916-3A895AE4 for ; Mon, 24 Oct 2011 12:56:03 -0400 Received: by yxo30 with SMTP id 30so4060205yxo.29 for ; Mon, 24 Oct 2011 09:56:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Dv+gk87K9m2V1PTjPs0nnrh/yGho/zVbxXUCP73VzNY=; b=JHaRRMfbWBLCFqY5HHhPwOlBEi4zeEO6cfCUJC5J2BRBUh8VnGL67snnblgWALwZiT aVm+wun1e6umYNX/iQgxFb73ZtF/a4Smm44deF9fv3evHPLj/eKQrN+i0u0Zsm9eBhZg 77lmHqfxkqyVK+g7IpaFZNbUjMiE2N8XdhN80= MIME-Version: 1.0 Received: by 10.236.197.72 with SMTP id s48mr2273111yhn.81.1319475360686; Mon, 24 Oct 2011 09:56:00 -0700 (PDT) Sender: david.coallier@gmail.com Received: by 10.147.128.33 with HTTP; Mon, 24 Oct 2011 09:56:00 -0700 (PDT) In-Reply-To: References: <4E208FE7.4020606@sugarcrm.com> Date: Mon, 24 Oct 2011 18:56:00 +0200 X-Google-Sender-Auth: 7IX7Hx6lb0bJRaKSHsRbYzzPbfY Message-ID: To: Mike Willbanks Cc: PHP Internals List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] SplClassLoader From: davidc@php.net (David Coallier) > >> >> What are peoples' thoughts on the name of the class? The word "auto" >> fits best with all that has come before, yet the proposal here uses >> "class": what about SplAutoloader? =C2=A0With the introduction of this n= ew >> class, whatever the name, what happens to __autoload() and >> spl_autoload_register(), if anything? How many ways do we want/need to >> load a class? > > > I believe by calling a class SplAutoloader when there is already an > implementation of spl_autoload that does something very different it woul= d > be advised to not name it of the same sort... this is what people would > start to think about. =C2=A0The name SplClassLoader is much more specific= . =C2=A0If we > needed to keep the word "Auto" it would seem better named > SplClassAutoLoader. > > spl_autoload is completely separate from __autoload today. =C2=A0Also __a= utoload > does differ from the spl_autoload facility in several ways and is not > recommended even from the manual standpoint: www.php.net/autoload. > =C2=A0Secondarily; a class loader cannot autoload functions - it is made = to only > implement PSR-0 and nothing more. =C2=A0While you may use spl_autoload to= load > classes the implementation can also load in functions. =C2=A0This class i= s really > just enforcing a specific standardization. > I've started toying around with adjusting the patch. A bit of rewrite is required but I'm attempting to modify the patch to be included directly in SPL with the name SplClassLoader so that one can do: $cl =3D new \SplClassLoader(..., ...); Once the patch is adjusted to fit with SPL, we can revisit the name however it is going to be used. --=20 David Coallier