Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42110 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55933 invoked from network); 5 Dec 2008 06:14:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Dec 2008 06:14:46 -0000 Authentication-Results: pb1.pair.com header.from=greg@chiaraquartet.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=greg@chiaraquartet.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chiaraquartet.net from 209.85.221.20 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 209.85.221.20 mail-qy0-f20.google.com Received: from [209.85.221.20] ([209.85.221.20:42367] helo=mail-qy0-f20.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 73/DA-20960-5D6C8394 for ; Fri, 05 Dec 2008 01:14:45 -0500 Received: by qyk13 with SMTP id 13so5376562qyk.23 for ; Thu, 04 Dec 2008 22:14:38 -0800 (PST) Received: by 10.214.46.10 with SMTP id t10mr16050664qat.150.1228457678395; Thu, 04 Dec 2008 22:14:38 -0800 (PST) Received: from Greg-Beavers-monster.local (c-76-24-31-44.hsd1.ma.comcast.net [76.24.31.44]) by mx.google.com with ESMTPS id 33sm10407525yxr.3.2008.12.04.22.14.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 04 Dec 2008 22:14:37 -0800 (PST) Message-ID: <4938C6CC.80605@chiaraquartet.net> Date: Fri, 05 Dec 2008 00:14:36 -0600 User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070807) MIME-Version: 1.0 To: Tony Bibbs CC: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: Autoload and namespaces From: greg@chiaraquartet.net (Greg Beaver) Tony Bibbs wrote: > Given this: > > use \MyProject\SubProjectA as A; > > A\foo::someMethod(); > > The className given is to the autoload function is > "MyProject\SubProjectA\foo" not "\MyProject\SubProjectA\foo" (notice lack of > leading \) > > I just wanted to verify that behaves as intended (which I'm guessing it > does). Yes. This is probably a good item to add to the FAQ. Greg