Bug #17667: mysql_replica_connect
| From: | msopacua at idg dot nl | Date: | Sun, 09 Jun 2002 13:43:00 +0000 |
| Subject: | Bug #17667: mysql_replica_connect | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-9930@lists.php.net to get a copy of this message | ||
From: msopacua@idg.nl
Operating system: Any
PHP version: 4.2.1
PHP Bug Type: Feature/Change Request
Bug description: mysql_replica_connect
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 bug report at http://bugs.php.net/?id=17667&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17667&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17667&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17667&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17667&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17667&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17667&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17667&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17667&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17667&r=globals