Re: Class Con- and Destructor Inheritance

From: Date: Sun, 22 Aug 2004 23:57:37 +0000
Subject: Re: Class Con- and Destructor Inheritance
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-194436@lists.php.net to get a copy of this message
* Thus wrote Justin Patrin: > On Sun, 22 Aug 2004 13:04:11 +0200, Daniel Schierbeck <dasch@ulmail.net> wrote: > > > > ... > > > > Note: Parent constructors are not called implicitly. In order > > to run a parent constructor, a call to parent::__construct() is > > required. > > > > Is this an error in the manual or in PHP itself? Should I report it > > somewhere? > > > > No, this is not a bug. This means that if you define a new constructor > / destructor, the parent class's won't be called unless you put it in > the new ones. Although not a bug, it is a little misleading, i've corrected it to explain when the constructor isn't called. Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid!

« previous php.general (#194436) next »