我已经memcached
安装了 libmemcached。我也安装了igbinary
.
这是我的 php.ini:
; Directory in which the loadable extensions (modules) reside.
;extension_dir = "./"
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613/"
extension=apc.so
apc.enabled=1
apc.shm_size=128M
extension=memcached.so
session.save_handler=memcached
session.save_path="127.0.0.1:11211"
extension=igbinary.so
session.serialize_handler=igbinary
igbinary.compact_strings=On
.
当我运行 phpinfo() 时,我看到 igbinary 已启用,但不适用于 memcached:
apc
Serialization Support php, igbinary
igbinary
igbinary support enabled
igbinary version 1.1.1
igbinary APC serializer ABI 0
Directive Local Value Master Value
igbinary.compact_strings On On
关于 memcached 的 Phpinfo():
memcached
memcached support enabled
Version 1.0.2
libmemcached version 0.51
Session support yes
igbinary support no
最后一行:igbinary support
这就是问题所在。奇怪的是,正如您在标题 apc 下看到的那样:Serialization Support php, igbinary
.
那么有人知道为什么我不能为memcached启用 igbinary吗?
谢谢!