470,862 Members | 1,712 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,862 developers. It's quick & easy.

Does PHP do automatic garbage collection?

Does PHP do automatic garbage collection, or should you explicitly
destroy things.

I found this statement mysql_free_result($result);
This makes me wonder.

Thanks for your help.
Jul 17 '05 #1
1 2786
"Bruce W...1" <br***@noDirectEmail.com> wrote in message news:<3F***************@noDirectEmail.com>...
Does PHP do automatic garbage collection, or should you explicitly
destroy things.

I found this statement mysql_free_result($result);
This makes me wonder.

http://in.php.net/mysql_free_result

mysql_free_result() only needs to be called if you are concerned
about how much memory is being used for queries that return large
result sets. All associated result memory is automatically freed at
the end of the script's execution.

---
"If there is a God, he must be a sadist!"
http://RajeshAnbiah.itgo.com - The simple site!
Email: rrjanbiah-at-Y!com
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

31 posts views Thread by lawrence | last post: by
reply views Thread by Andrew | last post: by
11 posts views Thread by Rick | last post: by
5 posts views Thread by Bob lazarchik | last post: by
8 posts views Thread by mike2036 | last post: by
19 posts views Thread by Angus | last post: by
158 posts views Thread by pushpakulkar | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.