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
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: 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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jan 02 12:01:29 2025 UTC