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
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-u...@lists.php.net
For additional commands, e-mail: php-de...@lists.php.net
To contact the list administrators, e-mail: php-lis...@lists.php.net