Re: Namespaces and __autoload()

From: Date: Mon, 27 Aug 2007 22:42:18 +0000
Subject: Re: Namespaces and __autoload()
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-31949@lists.php.net to get a copy of this message
The problem is that with this autoload technique this code now throws an Exception rather than a Foo::Exception:
Yep, unless you do require 'Foo/Exception.php'. Yes, I know it's not as nice as it might be. But the alternative is either use :: always or say goodbye to performance.
However, I wonder if using an import would be a clever way to get around the problem?
It would solve the issue too, of course. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#31949) next »