# AW: AW:  Namespace resolution

- Thread: https://externals.io/message/33966
- Original archive: https://news-web.php.net/php.internals/33966
- Started by Matthias Pigulla on 2007-12-12T11:29:02+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #33966 — Matthias Pigulla — 2007-12-12T11:29:02+00:00

URL: https://externals.io/message/33966#33966

> -----Ursprüngliche Nachricht-----
> Von: Stanislav Malyshev [mailto:stas@zend.com] 

> If the class for which autoloaded request is issued *exists*. 
> However, we are discussing the case where this class *does 
> not exist*, so it can not be loaded. Thus, autoload request 
> will be repeated on each access to such class.

Just a quick idea - what if requiring that autoloaders behave deterministically, that is, once a certain autoloader implementation has been given the possibility to find a class it will never be asked again (because it wouldn't find it later on either).

That might allow for caching the decision, so the next time you hit the same unqualified name you know what is meant? Does that make sense?

-mp.

---

## #33978 — Stanislav Malyshev — 2007-12-12T17:54:34+00:00

URL: https://externals.io/message/33966#33978 · In reply to: #33966

> Just a quick idea - what if requiring that autoloaders behave
> deterministically, that is, once a certain autoloader implementation
> has been given the possibility to find a class it will never be asked
> again (because it wouldn't find it later on either).

I'm not sure if it's a correct assumption to make in general case - 
files can be created.

-- 
Stanislav Malyshev, Zend Software Architect
stas@zend.com   http://www.zend.com/
(408)253-8829   MSN: stas@zend.com
