Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53601 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75588 invoked from network); 27 Jun 2011 14:02:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jun 2011 14:02:38 -0000 Authentication-Results: pb1.pair.com header.from=guilhermeblanco@gmail.com; sender-id=pass; domainkeys=bad 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.218.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: guilhermeblanco@gmail.com X-Host-Fingerprint: 209.85.218.42 mail-yi0-f42.google.com Received: from [209.85.218.42] ([209.85.218.42:57703] helo=mail-yi0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 15/C4-47962-B7D880E4 for ; Mon, 27 Jun 2011 10:02:36 -0400 Received: by yih10 with SMTP id 10so2200281yih.29 for ; Mon, 27 Jun 2011 07:02:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=6UozvG8Cwiz7HztgGGeSiZcsxBX5U1riYO2TaOCGMcY=; b=ZbG50wkERecdxYyImmrcBAcHyS/aLScxGUrD0wTe6n/IEqMWmuky1ZwlQ10y5H0Tak j6+aQRoR8xD0R67/0xr79dJTUyoRcj+/sW74YZGJ96b/8dqOswcX8CAoFLNmjjVMbKBI JR/QHiA4mmUgNY5d8vVfjrB5i4kQgp4eTzP1Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=d0fvkKz6c0DKzI2hW02POVFL/bh4vtfH6O1vAazJD1jxFj1cNeg7vGnWhc2j7VxTBt +sxLBvqdNwuBgN3RLZHIOUBYL6xZJ0OYo0umxyZWANP2SCcNiympyUHIYdZAx5/Swcf7 QdClPrJw++VPpKgBOExp7zeROF+xoSiA18eSg= Received: by 10.150.193.5 with SMTP id q5mr6630107ybf.96.1309183353100; Mon, 27 Jun 2011 07:02:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.147.33.7 with HTTP; Mon, 27 Jun 2011 07:02:13 -0700 (PDT) In-Reply-To: References: Date: Mon, 27 Jun 2011 11:02:13 -0300 Message-ID: To: rod Cc: Dennis Haarbrink , Hannes Magnusson , internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] SplClassLoader From: guilhermeblanco@gmail.com ("guilhermeblanco@gmail.com") Hannes, There's a RFC covering this. There's a patch also. https://wiki.php.net/rfc/splclassloader []s, On Mon, Jun 27, 2011 at 7:59 AM, rod wrote: > 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) . '.= php'; >> } >> >> 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 >>> >> >> > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 Guilherme Blanco Mobile: +55 (16) 9215-8480 MSN: guilhermeblanco@hotmail.com S=C3=A3o Paulo - SP/Brazil