Re: protected/private function __construct() not allowed in 5.0.4?

From: Date: Wed, 20 Apr 2005 14:05:35 +0000
Subject: Re: protected/private function __construct() not allowed in 5.0.4?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-16045@lists.php.net to get a copy of this message
Hi Greg, Greg Beaver wrote: > Try this code (which worked in 5.0.3) > > <?php > 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

« previous php.internals (#16045) next »