David Grudl wrote:
> I hope it is only very bad joke :-(
> 
> 
> namespace myNamespace;
> 
> class theLoader
> {
>    function load($class) { ... }
> }
> 
> 
> // somewhere else
> spl_autoload_register(array("myNamespace\theLoader", "load"));
> -> registers myNamespace<tab>heLoader::load()

Fortunately, there is a simple workaround:

spl_autoload_register(array('myNamespace\theLoader', 'load'));

or slightly less simple:

spl_autoload_register(array("myNamespace\\theLoader", "load"));

Greg

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

Reply via email to