Doc #64021 [Opn->Csd]: getServerByKey returns array, not true
| From: | googleguy@php.net | Date: | Sat, 19 Jan 2013 13:48:23 +0000 |
| Subject: | Doc #64021 [Opn->Csd]: getServerByKey returns array, not true | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-9446@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64021&edit=1
ID: 64021
Updated by: googleguy@php.net
Reported by: mark at enasni dot co dot uk
Summary: getServerByKey returns array, not true
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: memcached
PHP Version: 5.4.11
-Assigned To:
+Assigned To: googleguy
Block user comment: N
Private report: N
New Comment:
The fix for this bug has been committed.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2013-01-19 13:46:23] googleguy@php.net
Automatic comment from SVN on behalf of googleguy
Revision: http://svn.php.net/viewvc/?view=revision&revision=329236
Log: Method uses wrong return values. Fixes bug 64021.
------------------------------------------------------------------------
[2013-01-18 13:32:57] mark at enasni dot co dot uk
Description:
------------
---
From manual page: http://www.php.net/memcached.getserverbykey#refsect1-
memcached.getserverbykey-returnvalues
---
Returns an array, documentation states true.
Test script:
---------------
$cache = new Memcached();
$cache->addServers(array(
array('localhost', 11211, 20)
));
echo gettype($cache->getServerByKey('testing'));
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64021&edit=1