Re: mysql_close() and mysql_free_result() don't seem to work in PHP 4.3.4 or 5.0.1. A bug?

From: Date: Sun, 29 Aug 2004 18:20:48 +0000
Subject: Re: mysql_close() and mysql_free_result() don't seem to work in PHP 4.3.4 or 5.0.1. A bug?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-195095@lists.php.net to get a copy of this message
William wrote:
I can accept that as a workaround, but I was hoping to do more than merely mute the warnings. Is there a way to truly use the connection and result set handles? Can PHP truly utilize it's own connection resource handles in code? Bottom Line: This is going to make a real mess when multiple database connections need to be used and when multiple query results need to be managed simultaneously.
mysql_close and mysql_free_result work fine for me in 4.3.4 and higher as long as you pass it a valid resource, using multiple connections, and multiple result sets. Well, you don't have to pass mysql_close a resource at all, but if you do, it *has* to be valid. The only time I see the error you described in the original message was when I don't pass a valid resource. -- By-Tor.com It's all about the Rush http://www.by-tor.com

« previous php.general (#195095) next »