PHP crashes when I use Memcached::getVersion()-Collection of common programming errors
I tried to get memcached pecl extension to work, but when I call getVersion php crashes. I’ve tried to include any information that I think is relevant.
Example code
logan-bailey$ php -a
Interactive shell
php > $m = new Memcached();
php > $m->addServer('127.0.0.1', 11212);
php > $m->getVersion();
dyld: lazy symbol binding failed: Symbol not found: _memcached_server_major_version
Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20100525/memcached.so
Expected in: flat namespace
dyld: Symbol not found: _memcached_server_major_version
Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20100525/memcached.so
Expected in: flat namespace
Trace/BPT trap: 5
Memcached PHP Version
logan-bailey$ pecl list
Installed packages, channel pecl.php.net:
=========================================
Package Version State
memcache 2.2.7 stable
memcached 2.1.0 stable
xdebug 2.2.2 stable
PHP Version
logan-bailey$ php -v
PHP 5.4.14RC1 (cli) (built: Mar 30 2013 00:38:14)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
with Xdebug v2.2.2, Copyright (c) 2002-2013, by Derick Rethans
Mecached Version
logan-bailey$ brew info memcached
memcached: stable 1.4.15
libmemcached version
brew info libmemcached
libmemcached: stable 1.0.8