2011/11/11 Anthony Ferrara <ircmax...@gmail.com>:

[snip]

>> Actually they do not map the same file. Here is the path of each one:
>> new \Foo\Bar\Baz; => [path]/Foo/Bar/Baz.php
>> new \Foo\Bar_Baz; => [path]/Foo/Bar_Baz.php
>
> Well, as David pointed out, they do map to the same file.  But 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.

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to