Re: Re: objects passed as reference in php5
| From: | Curt Zirzow | Date: | Mon, 09 Aug 2004 17:46:07 +0000 |
| Subject: | Re: Re: objects passed as reference in php5 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-12040@lists.php.net to get a copy of this message | ||
* Thus wrote Ron Korving:
> i think the object will only cease to exist when all references to it are
> gone
Well there does seem to be another layer of referencing, since the
a simple assignment without &$ will simply reference the object but
in a different way. The problem I'm running into there doesn't
seem to be a way to reliably detstroy an object without the
programmer keeping track of the variable assignments and removing
those references as well.
I'm not sure if its possible or even php's responsibility but
perhaps provide a tool that allow's a programmer to explicity
destroy an object? with something like:
Destroy($obj);
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!