PDA

View Full Version : mysql_free_result() ??


HiroshiNanami
03-08-2002, 04:44 PM
In the PHP manual it says:

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.



Does that mean if I do not use mysql_free_result(), memory will not be freed automatically at the end of the script?

Admin
03-08-2002, 05:31 PM
No, you don't have to use mysql_free_result(). Read the docs, it says exactly the opposite of what you said -- "All associated result memory is automatically freed at the end of the script's execution."