Memory/Object question
| From: | Bug Hunter | Date: | Thu, 09 Nov 2000 16:59:30 +0000 |
| Subject: | Memory/Object question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-24512@lists.php.net to get a copy of this message | ||
I'm working on a program that will be running for a while (days) (using
php in a cgi mode).
If I have an object in an array and do the following:
obj2 = new obj;
obj["1"] = obj2;
If obj["1"] already existed, what happens to it? does it lay around
consuming memory, or is it destroyed?
Or does the data in the object get copied? If not, can I make the data
get copied so I don't eat up memory, without doing a variable at a time?
duh,
bug