Re: Interface inheritance

From: Date: Tue, 20 Apr 2004 12:30:18 +0000
Subject: Re: Interface inheritance
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-9415@lists.php.net to get a copy of this message
ZS>>I believe that this behavior is wrong. I believe that classes should ZS>>not be allowed to say they implement an interface X, unless they ZS>>actually implement all of the methods in that interface with methods ZS>>that are compatible with its prototypes. I agree. Since interfaces and abstract classes are new to PHP5, and do not pose compatibility problem, I think it's good to make them strict. The old behaviour can be always obtained by using regular classes. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115

« previous php.internals (#9415) next »