|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72309 Memcached::getVersion returns wrong Port
Submitted: 2016-06-01 10:37 UTC Modified: -
Avg. Score:3.7 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:1 (33.3%)
From: t dot weber at interexa dot de Assigned:
Status: Open Package: memcached (PECL)
PHP Version: 7.0.7 OS: CentOS
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: t dot weber at interexa dot de
New email:
PHP Version: OS:


 [2016-06-01 10:37 UTC] t dot weber at interexa dot de
Result of Memcached::getVersion contains Port reduced by one

Test script:
$mc = new Memcached();
$mc->addServer('localhost', '11211');
$result = $mc->getVersion();

Expected result:
array('localhost:11211' => string '1.4.15')

Actual result:
array('localhost:11210' => string '1.4.15')


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Sep 26 06:01:23 2020 UTC