Skip to content

Instantly share code, notes, and snippets.

@MasonM
Created May 4, 2012 16:56
Show Gist options
  • Save MasonM/2596207 to your computer and use it in GitHub Desktop.
Save MasonM/2596207 to your computer and use it in GitHub Desktop.
reproduce bug
#!/usr/local/bin/php
<?
$m = new Memcached();
$m->addServer('127.0.0.1', '11211');
$m->setOption(Memcached::OPT_BINARY_PROTOCOL, true);
$key = 'testkey';
$m->set($key, 'foo22');
$m->get($key, null, $cas);
$m->cas(999999, $key, 'foo');
var_dump($m->getResultCode() . " " . $m->getResultMessage());
$m->set('somethingrandom', 'aa');
var_dump($m->getResultCode() . " " . $m->getResultMessage());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment