Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53598 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38973 invoked from network); 27 Jun 2011 10:59:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jun 2011 10:59:46 -0000 Authentication-Results: pb1.pair.com header.from=rod.naph@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=rod.naph@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rod.naph@gmail.com X-Host-Fingerprint: 209.85.218.42 mail-yi0-f42.google.com Received: from [209.85.218.42] ([209.85.218.42:48692] helo=mail-yi0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FE/43-16466-1A2680E4 for ; Mon, 27 Jun 2011 06:59:45 -0400 Received: by yih10 with SMTP id 10so2129968yih.29 for ; Mon, 27 Jun 2011 03:59:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=JUeP5M0dqtFc26LNkjSEW/uD7U0BB4YgQBDrPxGY51c=; b=V+p374iJWEPyXkgYMf3m65U/y8bkxtrZYw3KXuTO/Iy46Awz5OzYmiqEtllnGKmWAX A/PQnEyHqSc0gwPGfn3xth4RlT76BTufQoWh2SHSlaIbdk6BF5+BQ90ksyS8E85aozpN gwSXs+Naji88dtUUY2/eeae6dUTxt1K1VolQE= DomainKey-Signature: a=rsa-sha1; c=nofws; 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; b=xyjiPqefTen1Qv7zMxLde0Y+ACC9EshiGn39pF1yTmlIkf/bd8pSooenepzv2yzj9x H6BcsP+TjdN8mmojIPAs18JR5m7DhAm+ELWmA3IJa7sTmEoDThLbkX5GdiKHr6v4tDC1 hfUPYnNhe1raeG1ADMIZuuoUIwk3C0iv9xQv0= MIME-Version: 1.0 Received: by 10.91.159.21 with SMTP id l21mr1385709ago.64.1309172381947; Mon, 27 Jun 2011 03:59:41 -0700 (PDT) Sender: rod.naph@gmail.com Received: by 10.90.117.7 with HTTP; Mon, 27 Jun 2011 03:59:41 -0700 (PDT) In-Reply-To: References: Date: Mon, 27 Jun 2011 11:59:41 +0100 X-Google-Sender-Auth: gVS50a6OeOt7f2aGAACiHuBnEY0 Message-ID: To: Dennis Haarbrink Cc: Hannes Magnusson , internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] SplClassLoader From: rod@pu-gh.com (rod) Yes sorry this is what I mean, a PSR0 compliant autoloader class built in as standard. $loader =3D new SplClassLoader(); $loader->register( '/path/to/my/library' ); etc... On 27 June 2011 11:57, Dennis Haarbrink wrote: > I suppose what he means is a classloader *implementation*. > Something along the lines of: > function($class) { > =C2=A0 =C2=A0 return str_replace('\\', DIRECTORY_SEPARATOR, $class) . '.p= hp'; > } > > 2011/6/27 Hannes Magnusson >> >> On Mon, Jun 27, 2011 at 12:19, rod wrote: >> > Quick question: is there any planned inclusion in PHP for an >> > SplClassLoader? >> > >> >> What would that class do that the spl_autoload*() functions don't? >> >> -Hannes >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> > >