Last modified: 2011-04-30 01:21:43 UTC
With mysql.trace_mode = on set in the php.ini file the following warning is recorded to the php error log when saving a page: PHP Warning: Unknown: 2 result set(s) not freed. Use mysql_free_result to free result sets which were requested using mysql_query() in Unknown on line 0
I know Tim's mentioned before that we don't need to free results (CCing him), but is this really a problem? mysql.trace_mode is a debugging tool afaik, not something that should be run on live sites. INVALID?
Yeah, my analysis that this warning, and the advice in the PHP manual, both result from a misconception on the part of the author of the mysql module. Testing shows that resources are freed when the reference count of the zval goes to zero, e.g. on unset().