[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
an implement a function like this: > >>myAutoLoader($className) { > >> if (!class_exists($className)) { > >> include("class/".str_replace("_", "/", $className).".php"); > >> } > >>} > >> > >>I&#x

[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

RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-11 Thread Andi Gutmans
t; > To: phpsurf; Ivan Ristic; Zeev Suraski > > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > > Subject: RE: [PHP-DEV] REPOST: Class Autoloading [PATCH] > > > > > > I'd prefer not having a handler for autoloader. I'd prefer having the > > Engine look for

RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-11 Thread phpsurf
idea ? is it for performance reasons ? > -Original Message- > From: Andi Gutmans [mailto:[EMAIL PROTECTED]] > Sent: lundi 10 juin 2002 22:33 > To: phpsurf; Ivan Ristic; Zeev Suraski > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: [PHP-DEV] REPOST: Class Autolo

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

2002-06-10 Thread brad lafountain
e)) { > > include("class/".str_replace("_", "/", $className).".php"); > > } > >} > > > >I'm sure many programmers would apreciate such a feature. > >Especially as it whould have no BC issue at all ! > > > > >

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

2002-06-10 Thread Andi Gutmans
rammers would apreciate such a feature. >>Especially as it whould have no BC issue at all ! >> >> > -Original Message- >> > From: Ivan Ristic [mailto:[EMAIL PROTECTED]] >> > Sent: dimanche 9 juin 2002 22:46 >> > To: Zeev Suraski >> > Cc: [EM

RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-10 Thread Andi Gutmans
gt; >I'm sure many programmers would apreciate such a feature. >Especially as it whould have no BC issue at all ! > > > -Original Message----- > > From: Ivan Ristic [mailto:[EMAIL PROTECTED]] > > Sent: dimanche 9 juin 2002 22:46 > > To: Zeev Suraski > > Cc

RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-10 Thread phpsurf
specially as it whould have no BC issue at all ! > -Original Message- > From: Ivan Ristic [mailto:[EMAIL PROTECTED]] > Sent: dimanche 9 juin 2002 22:46 > To: Zeev Suraski > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP-DEV] REPOST: Class Autoloading [PATCH] > > > > I be

Re: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-09 Thread Ivan Ristic
> I believe this has been discussed in the past and not ack'd, please read > the php-dev archives... I tried and I tried but I couldn't find a discussion on anything similar on the mailing list. The code I sent is *already* in use, and has been in use for some time now. Take a look at t

Re: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-09 Thread Zeev Suraski
I believe this has been discussed in the past and not ack'd, please read the php-dev archives... Zeev At 10:19 PM 6/9/2002, Ivan Ristic wrote: >Several days ago I posted a simple patch to the Zend Engine, >to support automatic class loading. The code is almost completely >copied from the existi