note 97520 added to function.mysql-close

From: Date: Fri, 23 Apr 2010 21:26:59 +0000
Subject: note 97520 added to function.mysql-close
Groups: php.notes 
Request: Send a blank email to php-notes+get-168577@lists.php.net to get a copy of this message
At least with PHP5.3.2 and Windows connecting by tcp, you should always use this mysql_close() function to close and free up the tcp socket being used by PHP. Garbage collection after script execution does not close the tcp socket on its own. The socket would otherwise remain in 'wait' state for approximately 30 seconds, and any additional page loads/connection attempts would only add to the total number of open tcp connections. This wait time does not appear to be configurable via PHP settings. ---- Server IP: 69.147.83.197 Probable Submitter: 66.25.188.193 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-close.php Edit -- https://master.php.net/note/edit/97520 Del: integrated -- https://master.php.net/note/delete/97520/integrated Del: useless -- https://master.php.net/note/delete/97520/useless Del: bad code -- https://master.php.net/note/delete/97520/bad+code Del: spam -- https://master.php.net/note/delete/97520/spam Del: non-english -- https://master.php.net/note/delete/97520/non-english Del: in docs -- https://master.php.net/note/delete/97520/in+docs Del: other reasons-- https://master.php.net/note/delete/97520 Reject -- https://master.php.net/note/reject/97520 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#168577) next »