PHP 4.0 Bug #9572: mysql_connect() with timeout

From: Date: Tue, 06 Mar 2001 06:20:28 +0000
Subject: PHP 4.0 Bug #9572: mysql_connect() with timeout
Groups: php.dev 
Request: Send a blank email to php-dev+get-48001@lists.php.net to get a copy of this message
From: php@winux.com Operating system: all PHP version: 4.0.4pl1 PHP Bug Type: Feature/Change Request Bug description: mysql_connect() with timeout 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 Bug report at: http://bugs.php.net/?id=9572&edit=1

« previous php.dev (#48001) next »