mysql_connect() with timeout

From: Date: Tue, 06 Mar 2001 00:40:33 +0000
Subject: mysql_connect() with timeout
Groups: php.general 
Request: Send a blank email to php-general+get-42691@lists.php.net to get a copy of this message
A few months ago I modified PHP 3.0.16 to add an optional fourth parameter to the mysql_connect() functions. The parameter specifies a timeout (in seconds) on the connect(). The patch simply uses the existing mysql_options() function in the MySQL library so it's quite stable code. I'm in the process of upgrading to PHP 4.0.4pl1 and so I've made a comparable change to that code base. Here are the patches for each version: http://www.winux.com/php/connection_timeout_php-3.0.16.txt http://www.winux.com/php/connection_timeout_php-4.0.4pl1.txt Since the timeout parameter is optional, the change is completely upward compatible with the existing languages. It's a wonderful thing. Is there any chance either of these might make it into the official release? Larry

« previous php.general (#42691) next »