php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59693 simple get failes with token
Submitted: 2011-03-27 17:26 UTC Modified: 2011-03-27 19:42 UTC
From: marc-bennewitz at arcor dot de Assigned:
Status: Closed Package: memcached (PECL)
PHP Version: 5.3.5 OS: Linux
Private report: No CVE-ID: None
 [2011-03-27 17:26 UTC] marc-bennewitz at arcor dot de
Description:
------------
If you set a token on get to use the cas-feature the return value of get is false

Reproduce code:
---------------
$m = new Memcached();
$m->addServer('127.0.0.1', 11211, 1);

var_dump($m->set('key', 'value', 100));
var_dump($m->get('key', null));
var_dump($m->get('key', null, $token));
var_dump($token);

Expected result:
----------------
bool(true)
string(5) "value"
string(5) "value"
float(4237)

Actual result:
--------------
bool(true)
string(5) "value"
bool(false)
float(4237)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-03-27 17:28 UTC] marc-bennewitz at arcor dot de
It effects the new memcached 2 beta 1
 [2011-03-27 19:42 UTC] andrei@php.net
Fixed and pushed to Github.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Oct 22 03:01:23 2020 UTC