Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8181 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50505 invoked by uid 1010); 26 Feb 2004 19:44:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 50471 invoked from network); 26 Feb 2004 19:44:05 -0000 Received: from unknown (HELO shiva.mind.de) (212.42.230.204) by pb1.pair.com with SMTP; 26 Feb 2004 19:44:05 -0000 Received: from [192.168.1.105] (pD95F8104.dip.t-dialin.net [217.95.129.4]) by shiva.mind.de (Postfix) with ESMTP id DC9EA97B64; Thu, 26 Feb 2004 20:43:53 +0100 (CET) Date: Thu, 26 Feb 2004 20:41:54 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <311368253343.20040226204154@marcus-boerger.de> To: Andrey Hristov Cc: Marcus Boerger , Timm Friebe , internals@lists.php.net In-Reply-To: <403DE1B3.1090508@hristov.com> References: <1077748616.685.16.camel@localhost> <1781292779406.20040225234401@marcus-boerger.de> <403DE1B3.1090508@hristov.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Declaration of Bar::__construct() must be compatible with that of Foo::__construct() From: helly@php.net (Marcus Boerger) Hello Andrey, Thursday, February 26, 2004, 1:08:19 PM, you wrote: > Marcus Boerger wrote: >> Hello Timm, >> >> i had the same expirience today too. And also for me it makes not much >> sense. The constructor shouldn't check inheritance rules. And as a >> consequence maybe interfaces shouldn't allow constructors. >> > Does inheritance include visibility rules? ;) You can only increase wivibility (pretected-> public) in a strict IS-A modell as PHP uses. -- Best regards, Marcus mailto:helly@php.net