{"id":5940,"date":"2014-04-10T08:53:43","date_gmt":"2014-04-10T08:53:43","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/10\/php-crashes-when-i-use-memcachedgetversion-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:49:27","modified_gmt":"2022-08-30T15:49:27","slug":"php-crashes-when-i-use-memcachedgetversion-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/10\/php-crashes-when-i-use-memcachedgetversion-collection-of-common-programming-errors\/","title":{"rendered":"PHP crashes when I use Memcached::getVersion()-Collection of common programming errors"},"content":{"rendered":"<p>I tried to get memcached pecl extension to work, but when I call getVersion php crashes. I&#8217;ve tried to include any information that I think is relevant.<\/p>\n<p><strong>Example code<\/strong><\/p>\n<pre><code>logan-bailey$ php -a\nInteractive shell\n\nphp &gt; $m = new Memcached();\nphp &gt; $m-&gt;addServer('127.0.0.1', 11212);\nphp &gt; $m-&gt;getVersion();\ndyld: lazy symbol binding failed: Symbol not found: _memcached_server_major_version\n  Referenced from: \/usr\/lib\/php\/extensions\/no-debug-non-zts-20100525\/memcached.so\n  Expected in: flat namespace\n\ndyld: Symbol not found: _memcached_server_major_version\n  Referenced from: \/usr\/lib\/php\/extensions\/no-debug-non-zts-20100525\/memcached.so\n  Expected in: flat namespace\n\nTrace\/BPT trap: 5\n<\/code><\/pre>\n<p><strong>Memcached PHP Version<\/strong><\/p>\n<pre><code>logan-bailey$ pecl list\nInstalled packages, channel pecl.php.net:\n=========================================\nPackage   Version State\nmemcache  2.2.7   stable\nmemcached 2.1.0   stable\nxdebug    2.2.2   stable\n<\/code><\/pre>\n<p><strong>PHP Version<\/strong><\/p>\n<pre><code>logan-bailey$ php -v\nPHP 5.4.14RC1 (cli) (built: Mar 30 2013 00:38:14)\nCopyright (c) 1997-2013 The PHP Group\nZend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies\n    with Xdebug v2.2.2, Copyright (c) 2002-2013, by Derick Rethans\n<\/code><\/pre>\n<p><strong>Mecached Version<\/strong><\/p>\n<pre><code>logan-bailey$ brew info memcached\nmemcached: stable 1.4.15\n<\/code><\/pre>\n<p><strong>libmemcached version<\/strong><\/p>\n<pre><code>brew info libmemcached\nlibmemcached: stable 1.0.8\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I tried to get memcached pecl extension to work, but when I call getVersion php crashes. I&#8217;ve tried to include any information that I think is relevant. Example code logan-bailey$ php -a Interactive shell php &gt; $m = new Memcached(); php &gt; $m-&gt;addServer(&#8216;127.0.0.1&#8217;, 11212); php &gt; $m-&gt;getVersion(); dyld: lazy symbol binding failed: Symbol not found: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,1],"tags":[],"class_list":["post-5940","post","type-post","status-publish","format-standard","hentry","category-php-memcached","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5940"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5940\/revisions"}],"predecessor-version":[{"id":8986,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5940\/revisions\/8986"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}