Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56275 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61306 invoked from network); 11 Nov 2011 10:01:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Nov 2011 10:01:45 -0000 Authentication-Results: pb1.pair.com header.from=patrick.allaert@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=patrick.allaert@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.42 as permitted sender) X-PHP-List-Original-Sender: patrick.allaert@gmail.com X-Host-Fingerprint: 209.85.161.42 mail-fx0-f42.google.com Received: from [209.85.161.42] ([209.85.161.42:41947] helo=mail-fx0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 76/FC-17932-882FCBE4 for ; Fri, 11 Nov 2011 05:01:45 -0500 Received: by faan2 with SMTP id n2so4167035faa.29 for ; Fri, 11 Nov 2011 02:01:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; 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; bh=abNQ0AecEkMzDnAaY95cE+aOKh1a7EgdYiXTXr28GZU=; b=hQW3zJH+s+O1XaZJnKXEh5jVdynRteu7ds2R230HkRPo0ivevQDPYyvP48txiY0745 gnxga5R9WczIVr+n+ePS6N19bSskNwV1xi9+w2ee/6NWWUXuINbpBGsqhwYTHW5Xp/Yi vqv0mOTLA75nt4TfqL+8snv4ej3tK16Z3nUxY= MIME-Version: 1.0 Received: by 10.223.91.82 with SMTP id l18mr18536962fam.30.1321005700550; Fri, 11 Nov 2011 02:01:40 -0800 (PST) Sender: patrick.allaert@gmail.com Received: by 10.223.95.205 with HTTP; Fri, 11 Nov 2011 02:01:40 -0800 (PST) In-Reply-To: References: Date: Fri, 11 Nov 2011 11:01:40 +0100 X-Google-Sender-Auth: zqqdfPFwbZAbrDBheQNpFDvFxQc Message-ID: To: Anthony Ferrara Cc: "guilhermeblanco@gmail.com" , PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Re: SPLClassLoader RFC Thoughts And Improvements From: patrickallaert@php.net (Patrick ALLAERT) 2011/11/11 Anthony Ferrara : [snip] >> Actually they do not map the same file. Here is the path of each one: >> new \Foo\Bar\Baz; =3D> [path]/Foo/Bar/Baz.php >> new \Foo\Bar_Baz; =3D> [path]/Foo/Bar_Baz.php > > Well, as David pointed out, they do map to the same file. =C2=A0But even = if > they didn't, the following two classes would still map to the same > file: > > \Foo\Bar > \Foo_Bar > > The point is that multiple classes can map to the same file. Yes, but even in that case the autoloader would not be triggered to load \Foo_Bar because if you already have used \Foo\Bar previously, that would have loaded \Foo_Bar as well.