note 80239 deleted from function.mysqli-close by danbrown

From: Date: Fri, 28 Nov 2008 22:27:14 +0000
Subject: note 80239 deleted from function.mysqli-close by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-147343@lists.php.net to get a copy of this message
Note Submitter: shladnik ---- 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.

« previous php.notes (#147343) next »