LibMemcached崩溃php fpm
我有PHP: root@15048:/#php-v PHP 7.0.3-1~dotdeb+8.1(cli)(NTS)版权所有 (c) 1997-2016 PHP Group Zend Engine v3.0.0版权所有(c) 1998-2016 Zend Technologies Zend OPcache v7.0.6-dev版权所有(c)1999-2016,由Zend Technologies提供 对于已安装的memcached库: 我还编写了使用memcached的类:LibMemcached崩溃php fpm,php,memcached,libmemcached,Php,Memcached,Libmemcached,我有PHP: root@15048:/#php-v PHP 7.0.3-1~dotdeb+8.1(cli)(NTS)版权所有 (c) 1997-2016 PHP Group Zend Engine v3.0.0版权所有(c) 1998-2016 Zend Technologies Zend OPcache v7.0.6-dev版权所有(c)1999-2016,由Zend Technologies提供 对于已安装的memcached库: 我还编写了使用memcached的类: public $c
public $cache;
public function __construct() {
$this->cache = new Memcached();
$this->cache->setOption(Memcached::OPT_LIBKETAMA_COMPATIBLE, true);
if (!count($this->cache->getServerList())) {
$this->cache->addServer('127.0.0.1', 11211);
}
}
public function get( $key ) {
return $this->cache->get( $key );
}
public function set( $key, $var, $time ) {
/*if ( $this->cache->set( $key, $var, $time ) )
return true;*/
return false;
}
public function flush() {
if ( $this->cache->flush() )
return true;
return false;
}
public function __destruct() {
$this->cache->quit();
}
但当我取消对“set”函数的注释时,只需取消注释,而从不调用它,php就会崩溃
我试过memcached的“add”函数也有同样的问题
[26-Mar-2016 14:26:42]警告:[池www]儿童15541在启动26.168556秒后,根据信号11(SIGSEGV)退出
[26-Mar-2016 14:26:42]通知:[泳池www]儿童15566开始
[26-Mar-2016 14:26:42]警告:[池www]child 15542在启动10.321759秒后,根据信号11(SIGSEGV)退出
[26-Mar-2016 14:26:42]通知:[泳池www]儿童15567开始
[26-Mar-2016 14:26:43]警告:[池www]child 15567在启动1.305421秒后,根据信号11(SIGSEGV)退出
[26-Mar-2016 14:26:43]通知:[泳池www]儿童15578开始
[26-Mar-2016 14:26:44]警告:[池www]child 15540在启动28.413800秒后根据信号11(SIGSEGV)退出
[26-Mar-2016 14:26:44]通知:[泳池www]儿童15579开始
Memcached使用igbinary,而igbinary在dotdeb.org的构建中被破坏@charlotte dunois谢谢,禁用此模块有帮助