Re: Wierd error
| From: | Jochem Maas | Date: | Thu, 17 Nov 2005 15:53:56 +0000 |
| Subject: | Re: Wierd error | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-225989@lists.php.net to get a copy of this message | ||
Chris Boget wrote:
interesting - you are suggesting that settype does free the memory directly? I have seen a number of posts to internals regarding to being able to free up memory in long-running/heavy cli scripts... none of the devs mentioned settype() ... maybe you know something nobody else does :-)why not just do: unset($dbObject);We were using unset() for the longest time but found it doesn't seem to free up the memory.
darn, no easy fix then. why didn't you paste the code verbatim? - typing it over by hand (or approximating) is a waste of (other) peoples time. (i.e. they are trying to help you fix code that doesn't really exist)You are right. My original email contained a typo. It should have been '=&' as that is what is in our code.$dbObject &= new IPI_OfficeDetailsInterface();so you want to do a bitwise AND on a non-existant variable and a newly creately object?? maybe you meant to do: $dbObject =& new IPI_OfficeDetailsInterface();
thnx, Chris