Home > Backend Development > PHP Tutorial > php7无法加载redis扩展

php7无法加载redis扩展

WBOY
Release: 2016-06-06 20:22:22
Original
2767 people have browsed it

执行 /etc/init.d/php7-fpm restart 如下提示

Starting php-fpm [07-Dec-2015 17:46:03] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/server/php7/lib/php/extensions/no-debug-non-zts-20151012/redis.so' - /server/php7/lib/php/extensions/no-debug-non-zts-20151012/redis.so: undefined symbol: zval_used_for_init in Unknown on line 0

redis版本 redis-cli 2.6.17
redis php 扩展版本 2.2.7 (http://pecl.php.net/package/redis 下载的最新的)

回复内容:

执行 /etc/init.d/php7-fpm restart 如下提示

Starting php-fpm [07-Dec-2015 17:46:03] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/server/php7/lib/php/extensions/no-debug-non-zts-20151012/redis.so' - /server/php7/lib/php/extensions/no-debug-non-zts-20151012/redis.so: undefined symbol: zval_used_for_init in Unknown on line 0

redis版本 redis-cli 2.6.17
redis php 扩展版本 2.2.7 (http://pecl.php.net/package/redis 下载的最新的)

https://github.com/edtechd/phpredis
下载的这个,重新编译,问题解决。

http://pecl.php.net/package/redis 这里的版本还不支持PHP7.
要用的话,应该下载这个:
https://github.com/phpredis/phpredis/archive/php7.zip

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template