note 80239 added to function.mysqli-close

From: Date: Sat, 05 Jan 2008 12:24:46 +0000
Subject: note 80239 added to function.mysqli-close
Groups: php.notes 
Request: Send a blank email to php-notes+get-134831@lists.php.net to get a copy of this message
I agree that resources should be freed as soon as posibble. What i was trying to point out at first is that there is no sense to call mysqli->close right before destroying mysqli object as connection will be closed anyway. If you don't need the connection anymore then i think it is better to destroy whole mysqli object by unsetting its variable and also connection will be closed consequentially. Probably some more resources will be freed this way. That is why i think that mysqli->close is usefull only when the same object is meant to be reused later. ---- Server IP: 91.185.195.14 Probable Submitter: 89.142.98.221 ---- Manual Page -- http://www.php.net/manual/en/function.mysqli-close.php Edit -- https://master.php.net/note/edit/80239 Del: integrated -- https://master.php.net/note/delete/80239/integrated Del: useless -- https://master.php.net/note/delete/80239/useless Del: bad code -- https://master.php.net/note/delete/80239/bad+code Del: spam -- https://master.php.net/note/delete/80239/spam Del: non-english -- https://master.php.net/note/delete/80239/non-english Del: in docs -- https://master.php.net/note/delete/80239/in+docs Del: other reasons-- https://master.php.net/note/delete/80239 Reject -- https://master.php.net/note/reject/80239 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#134831) next »