Re: Destructors
| From: | Christian Schneider | Date: | Mon, 24 May 2004 12:30:15 +0000 |
| Subject: | Re: Destructors | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-10065@lists.php.net to get a copy of this message | ||
Jason Garber wrote:
Based on the above example, the $oSession->__destruct() method relies on the $oDB object still being usable. How can this be structured to ensure that the DB object does not get released first?Adding something like $oSession->db = $oDB; should work in my opinion. Didn't test it and I have no real experience with destructors. - Chris