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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to