Skip to content

Instantly share code, notes, and snippets.

@arjenschol
Last active December 18, 2015 04:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arjenschol/5729158 to your computer and use it in GitHub Desktop.
Save arjenschol/5729158 to your computer and use it in GitHub Desktop.
(gdb) bt
#0 0x00007ffff5c8ce12 in ?? () from /usr/lib/libmemcached.so.11
#1 0x00007ffff5c8d665 in memcached_server_add_with_weight () from /usr/lib/libmemcached.so.11
#2 0x00007ffff5eb28c5 in zim_Memcached_addServer () from /usr/lib/php/modules/memcached.so
#3 0x00000000006d6e1c in ?? ()
#4 0x000000000065513f in execute ()
#5 0x000000000062fbd4 in zend_execute_scripts ()
#6 0x00000000005d1b1c in php_execute_script ()
#7 0x00000000006d8dcf in ?? ()
#8 0x000000000042615d in ?? ()
#9 0x00007ffff6908a15 in __libc_start_main () from /usr/lib/libc.so.6
#10 0x00000000004261f9 in _start ()
<?php
$memcache = new Memcached();
$memcache->addServer('192.168.1.1', 11211);
$memcache->setOption(Memcached::OPT_DISTRIBUTION, Memcached::DISTRIBUTION_CONSISTENT);
$memcache->resetServerList();
$memcache->addServer('192.168.1.1', 11211);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment