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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: marc-bennewitz at arcor dot de
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC