Re: $this->this and avoiding circular references
| From: | Robert Cummings | Date: | Fri, 09 Dec 2005 06:03:52 +0000 |
| Subject: | Re: $this->this and avoiding circular references | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-21124@lists.php.net to get a copy of this message | ||
On Fri, 2005-12-09 at 00:21, Alan Pinstein wrote:
>
> And, if it's just lucky, then what is the solution to the problem? Am
> I just SOL? Is the answer simply that if you *need* to create
> circular references in PHP, then you *must* accept memory leakage?
If you know you have a circular reference you can always use unset() to
break the reference and thus break the circle.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'