Bug #9572 Updated: mysql_connect() with timeout

From: Date: Tue, 16 Jul 2002 14:53:40 +0000
Subject: Bug #9572 Updated: mysql_connect() with timeout
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14319@lists.php.net to get a copy of this message
ID: 9572 Updated by: georg@php.net Reported By: php@winux.com -Status: Open +Status: Closed Bug Type: Feature/Change Request Operating System: all PHP Version: 4.0.4pl1 New Comment: To use the mysql_options connect_timeout parameter set the value mysql.connect_timeout in your php.ini file. Its supported since PHP 4.3.0 (current cvs tree). Previous Comments: ------------------------------------------------------------------------ [2001-03-06 01:20:28] php@winux.com 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=9572&edit=1

« previous php.bugs (#14319) next »