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
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
> 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
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
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
18 matches
Mail list logo