Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17516 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92499 invoked by uid 1010); 3 Aug 2005 20:40:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 92484 invoked from network); 3 Aug 2005 20:40:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Aug 2005 20:40:05 -0000 X-Host-Fingerprint: 63.118.113.4 miami4.us.univision.com Received: from ([63.118.113.4:26472] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 53/D9-04646-4AB21F24 for ; Wed, 03 Aug 2005 16:40:04 -0400 Message-ID: <53.D9.04646.4AB21F24@pb1.pair.com> To: internals@lists.php.net References: <42EF3C7D.9000105@supernerd.com> <7E.1F.04646.79E8FE24@pb1.pair.com> <13210444107.20050803190850@marcus-boerger.de> Date: Wed, 3 Aug 2005 16:40:08 -0400 Lines: 57 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Posted-By: 63.118.113.4 Subject: Re: [PHP-DEV] [PATCH] Namespace Patch, Beta 1 From: jrhernandez05@gmail.com ("Jessie Hernandez") Hello Marcus, This simple change will make class imports work out of the box, which is pretty good. What won't work out of the box are namespace imports. I think we should provide this also (using the same logic as I'm using in namespace_autoload.php). Even though this will complicate the default spl_autoload function, namespace imports would work by default and will be faster than the userland code. I'll try to add the spl_autoload changes in my patch in the next few days. Also, I just looked at the php_spl.c code, is there any reason why .php is not in the list of default extensions? It'd be nice if the default extensions were .php, .inc, and .inc.php. Best regards, Jessie "Marcus Boerger" wrote in message news:13210444107.20050803190850@marcus-boerger.de... > Hello Jessie, > > what ever you want auto-of-the-box is good. I suggest the simplest > possible way as default which is we simply stay like we are doing now and > only include a replacement from ':' to the current directory separator. > That we would be searching for '.inc' and '.inc.php' per default in the > include_path directories. > > marcus > > Tuesday, August 2, 2005, 5:17:45 PM, you wrote: > > > Forgot to mention, since I expect the majority of users to follow the PEAR > > convention for their classes (basically one class per file, file is named > > like class, with "namespace" directories), then maybe a default > > implementation can be provided in SPL's autoload. That way, namespace > > imports can be used "out of the box". > > > Marcus, what do you think? > > > > Regards, > > > Jessie Hernandez > > > > > Best regards, > Marcus