Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16045 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42275 invoked by uid 1010); 20 Apr 2005 14:12:03 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 41088 invoked by uid 1007); 20 Apr 2005 14:11:30 -0000 Message-ID: <20050420141130.41087.qmail@lists.php.net> To: internals@lists.php.net Date: Wed, 20 Apr 2005 16:05:35 +0200 References: <20050420031150.63328.qmail@lists.php.net> <20050420122407.0345f3ce.antony@zend.com> <42665E99.8000609@chiaraquartet.net> Lines: 18 User-Agent: KNode/0.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8Bit X-Posted-By: 62.138.229.210 Subject: Re: [PHP-DEV] protected/private function __construct() not allowed in 5.0.4? From: johannes@php.net (Johannes Schlueter) Hi Greg, Greg Beaver wrote: > Try this code (which worked in 5.0.3) > > class a { public function __construct(){}} > class b extends a { protected function __construct(){}} > ?> This was changed since such a change of visibility makes no sense - if you extend a class it should still be compatible with it's parent class. johannes -- Johannes Schlüter Mayflower GmbH / ThinkPHP http://thinkphp.de http://blog.thinkphp.de