Re: [PHP-DEV] getInstance and new self()

2004-03-14 Thread Ferdinand Beyer
On 14 Mar 2004 at 19:31, Andi Gutmans wrote: > self:: is always evaluated at compile-time and refers to the class it is > defined in and not the concrete object/class. > > Andi I think it would be a better for self to refer to the concrete class. Otherwise it is not possible to access overridd

Re: [PHP-DEV] getInstance and new self()

2004-03-14 Thread Andi Gutmans
self:: is always evaluated at compile-time and refers to the class it is defined in and not the concrete object/class. Andi At 05:03 PM 3/8/2004 -0700, Jeffrey Moss wrote: I found this on a zend engine 2 list archive, but didn't see an answer, has it been resolved? I am trying to create a single

[PHP-DEV] getInstance and new self()

2004-03-08 Thread Jeffrey Moss
I found this on a zend engine 2 list archive, but didn't see an answer, has it been resolved? I am trying to create a singleton class heirarchy without having to override getInstance [EMAIL PROTECTED]:~/devel/php/tests > php5 self.php object(test)#1 (0) { } Expected output would be "object(f