#40401 [Opn->Bgs]: Wrong parameter description in Memcache::connect

From: Date: Thu, 08 Feb 2007 12:50:12 +0000
Subject: #40401 [Opn->Bgs]: Wrong parameter description in Memcache::connect
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969375381@lists.php.net to get a copy of this message
ID: 40401 Updated by: tony2001@php.net 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

« previous php.doc (#969375381) next »