[PHP-DEV] RE: [Zend Engine 2] RE: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-08-16 Thread phpsurf
an Ristic > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: [Zend Engine 2] RE: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] > REPOST: Class Autoloading [PATCH] > > > At 06:24 PM 8/7/2002 +0200, phpsurf wrote: > >Hi > > > >I'm testing this great feat

RE: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-08-16 Thread Andi Gutmans
> > -Original Message- > > From: Andi Gutmans [mailto:[EMAIL PROTECTED]] > > Sent: mercredi 26 juin 2002 21:02 > > To: Brad LaFountain; Ivan Ristic; phpsurf > > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > > Subject: Re: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] RE

RE: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-27 Thread phpsurf
D]; [EMAIL PROTECTED] > Subject: RE: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class > Autoloading [PATCH] > > > At 11:21 AM 6/27/2002 +0200, phpsurf wrote: > > > -Original Message- > > > From: Andi Gutmans [mailto:[EMAIL PROTECTED]] > > > Sen

RE: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-27 Thread Andi Gutmans
ject: 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. > > > >A

RE: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-27 Thread phpsurf
> -Original Message- > From: Andi Gutmans [mailto:[EMAIL PROTECTED]] > Sent: mercredi 26 juin 2002 21:02 > To: Brad LaFountain; Ivan Ristic; phpsurf > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class &g

Re: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-26 Thread Andi Gutmans
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

Re: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-26 Thread Brad LaFountain
> - 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 t

Re: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-26 Thread Andi Gutmans
Ivan, I just commited a patch for autoloading to the CVS. It is improved over your patch in the way I discussed (it propogates throughout Zend). I hope it works out to work well. CVS commit message: - Autoloading support based on patch from Ivan Ristic. - Again I hope this feature ends up worki

Re: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-13 Thread Andi Gutmans
At 07:00 PM 6/13/2002 +0100, Ivan Ristic wrote: > > > > The second problem is that I don't see it working with nested classes. > > > > Is it good enough to only have this work with classes in the global >scope? > > > > > > I am not really familiar with nested classes; is it because > > > you d

Re: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-13 Thread Ivan Ristic
> > > The second problem is that I don't see it working with nested classes. > > > Is it good enough to only have this work with classes in the global scope? > > > > I am not really familiar with nested classes; is it because > > you don't know the name of the file in which a nested class > >

Re: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-12 Thread Andi Gutmans
At 06:53 PM 6/12/2002 +0100, Ivan Ristic wrote: > > First of all I'd prefer it to call a predefined callback called > > __autoload() if a class is not found. > > I do not have a problem with the predefined name. However, > unserialize is already using the ini setting for the > same thing, an

Re: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-12 Thread Ivan Ristic
> First of all I'd prefer it to call a predefined callback called > __autoload() if a class is not found. I do not have a problem with the predefined name. However, unserialize is already using the ini setting for the same thing, and it would be a shame to introduce an inconsistency. C

Re: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-12 Thread Andi Gutmans
I have two problems here. First of all I'd prefer it to call a predefined callback called __autoload() if a class is not found. The second problem is that I don't see it working with nested classes. Is it good enough to only have this work with classes in the global scope? Andi At 11:27 PM 6/11

Re: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-11 Thread Andi Gutmans
At 11:27 PM 6/11/2002 +0100, Ivan Ristic wrote: > > Okay, I guess I can live with it :) > > > > Andi > > Is 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? Hmm, I was wondering where t

[PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-11 Thread Stig S. Bakken
Why? Does the parser risk ending up in an invalid state if the PHP code has errors? - Stig On Mon, 2002-06-10 at 22:35, Andi Gutmans wrote: > Or have a user-definable classpath. But I think it's better not to call > into PHP code. > > Andi > > At 11:32 PM 6/10/2002 +0300, Andi Gutmans wrote

[PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-11 Thread Ivan Ristic
> Okay, I guess I can live with it :) > > Andi Is 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, [EMAIL PROTECTED] [ Weblog on PHP, Software development, Intranets, and Kno

[PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-10 Thread brad lafountain
I dissagree with that... I would like the option to say where my classes are. If i want multiple classes in one file then i can. function myAutoLoader($className) { if (!class_exists($className)) { include("all_of_my_classes.php"); } } Making a classpath and ClassName.php files will make

[PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-10 Thread Andi Gutmans
Or have a user-definable classpath. But I think it's better not to call into PHP code. Andi At 11:32 PM 6/10/2002 +0300, Andi Gutmans wrote: >I'd prefer not having a handler for autoloader. I'd prefer having the >Engine look for ClassName.php in the default include_path and if it >doesn't exi