Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8158 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79051 invoked by uid 1010); 26 Feb 2004 08:28:07 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 79017 invoked from network); 26 Feb 2004 08:28:06 -0000 Received: from unknown (HELO jdi.jdimedia.nl) (212.204.192.51) by pb1.pair.com with SMTP; 26 Feb 2004 08:28:06 -0000 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.10/8.12.10) with ESMTP id i1Q8S59b028822; Thu, 26 Feb 2004 09:28:05 +0100 Date: Thu, 26 Feb 2004 09:28:05 +0100 (CET) X-X-Sender: derick@localhost To: Marcus Boerger cc: Timm Friebe , internals@lists.php.net In-Reply-To: <1571295527875.20040226002949@marcus-boerger.de> Message-ID: References: <1077748616.685.16.camel@localhost> <1781292779406.20040225234401@marcus-boerger.de> <1077749539.685.27.camel@localhost> <1571295527875.20040226002949@marcus-boerger.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Declaration of Bar::__construct() must be compatible with that of Foo::__construct() From: derick@php.net (Derick Rethans) On Thu, 26 Feb 2004, Marcus Boerger wrote: > Hello Timm, > > well for normal methods we must do that. The derived class must support the > same signature that the base class supports. In you example that would only > work if the derived method would have a default parameter for the additional > parameter: I think this is only annoying users for nothing... I really don't see a good reason on why to enforce this. Derick