From: nospam at unclassified dot de Operating system: Windows 2000 Pro PHP version: 4.3.2 PHP Bug Type: MySQL related Bug description: mysql.connect_timeout has no effect
I tried to connect to a mysql server that was not accessible. mysql_connect() gave me an error 10060, that's ok. But it did that after abt. 20 seconds, and in conjunction with a fatal error that said my script timed out after 10 seconds. And that's although I set the 'mysql.connect_timeout' setting to 4 seconds. It seems the 'mysql.connect_timeout' setting in my php.ini has no effect on the behaviour of mysql_connect(). I have checked the setting with ini_get() and it was correct. I have found the bug in PHP 4.3.1, an upgrade to 4.3.2 did not help. Can it be that connection timeouts aren't supported under Windows platform? In that case, this should be documented. -- Edit bug report at http://bugs.php.net/?id=24133&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24133&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24133&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24133&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24133&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24133&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24133&r=support Expected behavior: http://bugs.php.net/fix.php?id=24133&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24133&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24133&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24133&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24133&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24133&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24133&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24133&r=gnused