php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #64021 getServerByKey returns array, not true
Submitted: 2013-01-18 13:32 UTC Modified: 2013-01-19 13:50 UTC
From: mark at enasni dot co dot uk Assigned: googleguy (profile)
Status: Closed Package: Documentation problem
PHP Version: 5.4.11 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mark at enasni dot co dot uk
New email:
PHP Version: OS:

 

 [2013-01-18 13:32 UTC] 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'));


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-01-19 13:46 UTC] 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-19 13:48 UTC] googleguy@php.net
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.


 [2013-01-19 13:48 UTC] googleguy@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: googleguy
 [2013-01-19 13:50 UTC] googleguy@php.net
-Package: memcached +Package: Documentation problem
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 22:00:01 2026 UTC