Google Groepen ondersteunt geen nieuwe Usenet-berichten of -abonnementen meer. Historische content blijft zichtbaar.

[PHP-DEV] PHP 4.0 Bug #9572: mysql_connect() with timeout

0 weergaven
Naar het eerste ongelezen bericht

p...@winux.com

ongelezen,
6 mrt 2001, 01:18:3706-03-2001
aan
From: p...@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

--
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

0 nieuwe berichten