Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42108 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70532 invoked from network); 4 Dec 2008 22:26:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Dec 2008 22:26:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=tony@tonybibbs.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=tony@tonybibbs.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain tonybibbs.com from 209.85.198.237 cause and error) X-PHP-List-Original-Sender: tony@tonybibbs.com X-Host-Fingerprint: 209.85.198.237 rv-out-0506.google.com Received: from [209.85.198.237] ([209.85.198.237:12980] helo=rv-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 24/BB-20960-F1958394 for ; Thu, 04 Dec 2008 17:26:42 -0500 Received: by rv-out-0506.google.com with SMTP id g37so4233595rvb.23 for ; Thu, 04 Dec 2008 14:26:36 -0800 (PST) Received: by 10.114.137.2 with SMTP id k2mr9364395wad.146.1228429596685; Thu, 04 Dec 2008 14:26:36 -0800 (PST) Received: by 10.114.175.11 with HTTP; Thu, 4 Dec 2008 14:26:36 -0800 (PST) Message-ID: Date: Thu, 4 Dec 2008 16:26:36 -0600 To: internals@lists.php.net MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9369_22820640.1228429596663" Subject: Autoload and namespaces From: tony@tonybibbs.com ("Tony Bibbs") ------=_Part_9369_22820640.1228429596663 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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). -- Tony Bibbs Email: tony@tonybibbs.com Phone: 515.554.8046 Twitter: tonybibbs Skype: tonybibbs Web: http://www.tonybibbs.com ------=_Part_9369_22820640.1228429596663--