Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9364 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80692 invoked by uid 1010); 19 Apr 2004 10:01:20 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 80667 invoked from network); 19 Apr 2004 10:01:19 -0000 Received: from unknown (HELO xaxa.search.ch) (195.141.85.118) by pb1.pair.com with SMTP; 19 Apr 2004 10:01:19 -0000 Received: from localhost (localhost [127.0.0.1]) by xaxa.search.ch (Postfix) with ESMTP id 4DE776D841; Mon, 19 Apr 2004 12:01:19 +0200 (CEST) Received: by xaxa.search.ch (Postfix, from userid 65534) id 459B56D833; Mon, 19 Apr 2004 12:01:18 +0200 (CEST) Received: from cschneid.com (ultrafilter2-i [192.168.85.3]) by xaxa.search.ch (Postfix) with ESMTP id A94F26D82F; Mon, 19 Apr 2004 12:01:17 +0200 (CEST) Message-ID: <4083A36C.7040801@cschneid.com> Date: Mon, 19 Apr 2004 12:01:16 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040114 X-Accept-Language: en-us, en, de-ch, de MIME-Version: 1.0 To: zeev@zend.com Cc: internals@lists.php.net References: <5.1.0.14.2.20040419112627.03efaa00@localhost> In-Reply-To: <5.1.0.14.2.20040419112627.03efaa00@localhost> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on xaxa.search.ch X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.63 X-Virus-Scanned: by AMaViS 0.3.12pre8 Subject: Re: Interface inheritance From: cschneid@cschneid.com (Christian Schneider) Zeev Suraski wrote: > Any method that implements (directly or indirectly) an interface method > or an abstract method, will have implementation checks fully enforced, > with an E_COMPILE_ERROR emitted in case of an error. Excuse my ignorance: What is defined as fully implementing the interface? I guess all methods have to be implemented with all the parameters having the same type if specified, right? What about extending the parameter set, especially with default values? E.g. is foo(A $a, $newparam = 'false) valid for foo(A $a)? - Chris