Re: Class Con- and Destructor Inheritance
| From: | Daniel Schierbeck | Date: | Mon, 23 Aug 2004 13:56:00 +0000 |
| Subject: | Re: Class Con- and Destructor Inheritance | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194468@lists.php.net to get a copy of this message | ||
Curt Zirzow wrote:
* Thus wrote Justin Patrin:Thanks, all i needed to know :) The manual's a bit confusing on that part... Cheers, DanielOn Sun, 22 Aug 2004 13:04:11 +0200, Daniel Schierbeck <dasch@ulmail.net> wrote:Although not a bug, it is a little misleading, i've corrected it to explain when the constructor isn't called. Curt...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.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?