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