Re: Use of 'self' in static function in subclass

From: Date: Tue, 01 Jun 2004 14:12:48 +0000
Subject: Re: Use of 'self' in static function in subclass
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-10207@lists.php.net to get a copy of this message
Ferdinand Beyer wrote:
On 1 Jun 2004 at 15:21, Stephan Schmidt wrote:
Furthermore this renders the template-method pattern quite
useless, so
IMHO it should be changed.
He should define an abstract method Foo::Baz() here.
Yes, I agree that design-wise that would be better -- but it will still fail w/ E_FATAL in PHP if the method is abstract ("cannot call abstract method Foo::Baz() in ...."). Hans

« previous php.internals (#10207) next »