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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
6 + 13 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 13:01:30 2024 UTC