就像问题说的
Ygam
问问题
320 次
1 回答
1
是的,只需 unset() 结果对象。然后结果对象将调用mysql_free_result
()
例如
// $result now holds a Datbase_Result object
$result = Database::instance()->query('SELECT * FROM table');
// To free the result, simply destroy the variable through means of unset()
unset($result);
// Result memory has now been freed
于 2009-08-12T20:59:37.387 回答