Doc #75564 [Opn->Csd]: Unclear what "failure" is in Memcached::addServer()

From: Date: Thu, 25 Mar 2021 16:49:00 +0000
Subject: Doc #75564 [Opn->Csd]: Unclear what "failure" is in Memcached::addServer()
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-18670@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75564&edit=1 ID: 75564 Updated by: cmb@php.net Reported by: teo8976 at gmail dot com Summary: Unclear what "failure" is in Memcached::addServer() -Status: Open +Status: Closed Type: Documentation Problem Package: memcache PHP Version: Irrelevant -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: The official bug tracker for PECL/memcache is now at <https://github.com/websupport-sk/pecl-memcache/issues>. So, if this is still an issue with either of the current memcache versions (4 or 8), please file an issue there. Previous Comments: ------------------------------------------------------------------------ [2017-11-23 18:29:22] teo8976 at gmail dot com Description: ------------ --- From manual page: http://www.php.net/memcache.addserver --- "Returns TRUE on success or FALSE on failure." That might seem self-explaining, but it is not, because of this: "When using this method [...] the network connection is not established until actually needed. Thus there is no overhead in adding a large number of servers to the pool, even though they might not all be used." So, if the connection is not established when calling addServer(), it is unclear what exactly might "fail" and cause this method to return false. That should be explained. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75564&edit=1

« previous php.doc.bugs (#18670) next »