Re: Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]
| From: | Andi Gutmans | Date: | Wed, 26 Jun 2002 19:01:37 +0000 |
| Subject: | Re: 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-85610@lists.php.net to get a copy of this message | ||
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
At 11:56 AM 6/26/2002 -0700, Brad LaFountain wrote:
- will never work for sub-classes so don't even ask!!!!! Andi, This doesn't need to be an issue. The way that I use sub-classes is I ALWAYS include_once("subclass.php"); at the top of each superclass file. I know everyone doesn't code the same way but maybe you can have that as a suggestion to people who use __autoload. Foo.php class Foo{} Bar.php class Bar{} MyFoo.php include_once("Foo.php"); class MyFoo extends Foo{} MyBar.php include_once("Bar.php"); class MyBar extends Bar{} auto_test.php <? function __autoload($name) { include_once("$name.php"); } $f = new MyFoo(); $b = new MyBar(); ?> - brad At 11:27 PM 6/11/2002 +0100, Ivan Ristic wrote:-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.comOkay, I guess I can live with it :) AndiIs there anyone else who would like to comment on the patch? http://www.webkreator.com/download/class_autoload.patch Or can we have it committed? -- Ivan Ristic, ivanr@webkreator.com [ Weblog on PHP, Software development, Intranets, and Knowledge Management: http://www.webkreator.com ] -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php