If I'm doing, as it might be, the following in PHP:

$dbh = new PDO ("sqlite:mydb");

$res1  = $dbh->query ("select ...");
$res11 = $res1->fetchAll (PDO::FETCH_ASSOC);

Does anyone know at what point the variable $res1 becomes free for 
re-use? Is it immediately after the assignment to $res11 above 
(assuming I don't want to fetch the result set again)?

In re-using these variables ($res1 and $res11), if I simply re-assign 
to them, does that cause a memory loss or is the garbage collection 
automatic? Or do I need to free up the space by setting them to null 
first, or via some function call?

(I had a look at php.net but the doc is a bit sketchy).

Thanks,
-- 
-- tim
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to