By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,643 Members | 1,797 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,643 IT Pros & Developers. It's quick & easy.

Does PHP do automatic garbage collection?

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
"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.