Bug #17667 Updated: mysql_replica_connect

From: Date: Mon, 22 Jul 2002 16:05:18 +0000
Subject: Bug #17667 Updated: mysql_replica_connect
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14771@lists.php.net to get a copy of this message
ID: 17667 Updated by: georg@php.net Reported By: msopacua@idg.nl -Status: Open +Status: Closed Bug Type: Feature/Change Request Operating System: Any PHP Version: 4.2.1 New Comment: With the current cvs-version (PHP 4.3.0) you can set the parameter mysql.connect_timeout in your php.ini file, See: http://www.php.net/manual/en/ref.mysql.php (Runtime configuration) Previous Comments: ------------------------------------------------------------------------ [2002-06-09 09:42:59] msopacua@idg.nl Hi, I'd like to request the function mysql_replica_connect: resource mysql_replica_connect(array primary_props, array secondary_props, int hard_timeout) array primary- / secondary_props should be: array( 'hostname' => 'a hostname or ip', 'port' => 'a port or absolute path to socket', 'username' => 'a username', 'password' => 'a password', ); The int hard_timeout should behave in the exact manner as fsockopen does: ie - drop the connection attempt if it's passed. This is different than what mysql_connect() does now, because it will timeout until PHP_INI("max_execution_time") has passed, in case the __host__ is unreachable. Another way would probably be, to provide a hard timeout on mysql_connect. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17667&edit=1

« previous php.bugs (#14771) next »