RE: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]
| From: | Andi Gutmans | Date: | Thu, 27 Jun 2002 16:36:35 +0000 |
| Subject: | RE: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH] | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-85636@lists.php.net to get a copy of this message | ||
At 11:21 AM 6/27/2002 +0200, phpsurf wrote:
-----Original Message----- From: Andi Gutmans [mailto:andi@zend.com] Sent: mercredi 26 juin 2002 21:02 To: Brad LaFountain; Ivan Ristic; phpsurf Cc: php-dev@lists.php.net; engine2@lists.zend.com Subject: Re: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH] Hey, What I meant was nested classes, my bad :) I meant it won't work for Foo::Bar::Barbara but only for class Foo. Andi, what is the problem with nested classes ? it is that the only class name that could be passed to __autoload is "Barbara" instead of "Foo::Bar::Barbara" ? or is it the problem to pass the class context to __autoload so the new nested class gets created inside the appropriate context ? just to understand ...At the time you reach Barbara you have no way of knowing that you're in Foo::Bar. Just make sure that if Foo is autoloaded that you load all its classes if you need them. I think this autoload is more than enough for the people who asked for this feature. Andi