note 78209 added to function.mysql-connect
| From: | vha at abv dot bg | Date: | Wed, 03 Oct 2007 07:46:41 +0000 |
| Subject: | note 78209 added to function.mysql-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-131025@lists.php.net to get a copy of this message | ||
I am using the following code in my destructor:
<?
if(isset($mysql_connection))
{
mysql_close($mysql_connection);
unset($mysql_connection);
}
?>
With the code above I have no problems and no warnings appears on multiple calls to the desctructor,
as the mysql_close function is actually called only once.
http://www.lanix.org/ica/
----
Server IP: 195.149.248.161
Probable Submitter: 87.116.72.218
----
Manual Page -- http://www.php.net/manual/en/function.mysql-connect.php
Edit -- https://master.php.net/note/edit/78209
Del: integrated -- https://master.php.net/note/delete/78209/integrated
Del: useless -- https://master.php.net/note/delete/78209/useless
Del: bad code -- https://master.php.net/note/delete/78209/bad+code
Del: spam -- https://master.php.net/note/delete/78209/spam
Del: non-english -- https://master.php.net/note/delete/78209/non-english
Del: in docs -- https://master.php.net/note/delete/78209/in+docs
Del: other reasons-- https://master.php.net/note/delete/78209
Reject -- https://master.php.net/note/reject/78209
Search -- https://master.php.net/manage/user-notes.php