Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By ulyses on
I am not sure where and how should I use mysql_free_result. Can anybody tell me if Drupal executes this function when result object destructor is called? Should I call this function manually? Does abstraction layer solves this problem?
Comments
Answered?
Does anyone have an answer? Does drupal have a function similar to mysql_free_result() in the abstraction layer? Is it even necessary to call?
+1 on this
+1 on this
No mysql free result
FOR Drupal 6
$/> egrep -nR 'free_result' *
on the whole source tree (contrib included) returns no results.
Also doing a string search on database.inc, database.mysql-common.inc, database.mysql.inc and database.mysqli.inc all return no results.
It is safe to assume that there is no free_results in the db implementation.
Ditto for Drupal 7 (-stable
Ditto for Drupal 7 (-stable from yesterday download)