using mysql_close() = best practice?

From: Date: Sat, 24 Oct 2009 08:36:06 +0000
Subject: using mysql_close() = best practice?
Groups: php.general 
Request: Send a blank email to php-general+get-299284@lists.php.net to get a copy of this message
Hi PHP closes an open db connection when the script is done. I've read somewhere that in PHP6 this behaviour will dissapear, is this true? In that case using mysql_close() would definetly be best practice in all current scripts, to make it portable. A nice solution would probably be adding a end_mysql() or page_end() to all pages and put whatever is needed into that function (mysql_close, mysql_free_result, etc) -- Kind regards Kim Emax - masterminds.dk

« previous php.general (#299284) next »