note 57739 added to function.mysql-close

From: Date: Wed, 12 Oct 2005 21:23:52 +0000
Subject: note 57739 added to function.mysql-close
Groups: php.notes 
Request: Send a blank email to php-notes+get-96921@lists.php.net to get a copy of this message
Read http://bugs.php.net/bug.php?id=30525, and wow... It might be 'just how it works', but this reads like a broken implementation. cameron2 has it right, with this implementation cleaning up connections with mysql_close() can never be done, esp. if the connection is passed to a routine that you have no visibilty into. You just never know if setting the variable to null or calling mysql_close() is going to error the script. ---- Manual Page -- http://www.php.net/manual/en/function.mysql-close.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+57739 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57739&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57739&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57739&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57739&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57739&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57739&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57739&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+57739&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#96921) next »