msgpack_unpack()
PHP message: PHP Fatal error: Call to undefined function msgpack_unpack() in .......
wget -c https://pecl.php.net/get/msgpack-0.5.7.tgz
tar zxvf msgpack-0.5.7.tgz
cd msgpack-0.5.7
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make && make install
vim /usr/local/php/etc/php.ini
###加上一行 extension=msgpack.so
#重启下php
https://pecl.php.net/package/msgpack
如果php56使用msgpack-2.0.3.tgz
会报:php_msgpack.h:4:56: fatal error: Zend/zend_smart_str.h: No such file or directory 类似错误
来源:CSDN
作者:p763833631
链接:https://blog.csdn.net/p763833631/article/details/88526705