note 78223 deleted from function.mysql-connect by ezyang
| From: | ezyang@php.net | Date: | Wed, 03 Oct 2007 23:20:28 +0000 |
| Subject: | note 78223 deleted from function.mysql-connect by ezyang | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-131054@lists.php.net to get a copy of this message | ||
Note Submitter: vha at abv dot bg
Reason: useless
----
I am using the following code in the destructor:
<?
if(isset($mysql_connection))
{
mysql_close($mysql_connection);
unset($mysql_connection);
}
?>
So the warning will not occure(if multiple calls to destructor of the db class happen) and
everything will be OK.
http://www.lanix.org/ica/