note 25747 deleted from keyword.parent by jmcastagnetto

From: Date: Fri, 04 Oct 2002 03:52:13 +0000
Subject: note 25747 deleted from keyword.parent by jmcastagnetto
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-37654@lists.php.net to get a copy of this message
<p>When using the technique suggested by "<b>minoc at mindspring dot com</b>" on this page - USE EXTREME CAUTION.</p> The problem is that if you inherit of a class that uses this kludge in the constructor you will end up with a recursive constructor - unless that new class has a constructor of it's own that by-passes the kludged constructor. What I am saying, is you can use this technique as long as you can ensure that each class you inherit from a class containing this technique in the constructor has a constructor class of it's own that does not call the parent constructor... On balance it is probably easier to specify the name of the constructor class explicitly! If you make this mistake the symptoms are pretty easy to spot - PHP spirals into an infinitely recursive loop as soon as you attempt to construct a new class. Your web-server will returns an empty document.

« previous php.notes (#37654) next »