ID: 40401
Updated by: [EMAIL PROTECTED]
Reported By: timo dot witte at kwick dot de
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
Operating System: Linux 2.6
PHP Version: Irrelevant
New Comment:
No, it's indeed seconds.
But the timeout is not used if the host is down, rejects the connection
and in any other situation when your system's select() fails right away.
Previous Comments:
------------------------------------------------------------------------
[2007-02-08 12:44:19] timo dot witte at kwick dot de
Description:
------------
Memcache::connect
The timeout Parameter is NOT in seconds but in microseconds!
Reproduce code:
---------------
$mc = new Memcache;
$mc->connect("someremotememcache", 11211, 1);
Expected result:
----------------
$mc should be connected
Actual result:
--------------
$mc returns with connection timed out instantly (not after a second but
a microsecond)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40401&edit=1