nrk / phpiredis

PHP extension for Redis based on Hiredis
BSD 2-Clause "Simplified" License
490 stars 66 forks source link

Update README.md #62

Closed yanzzchn closed 4 years ago

yanzzchn commented 5 years ago

Note: Installing the phpiredis extension requires php to install both the APC and APCU extensions in addition to Hiredis, otherwise the dynamic library cannot be loaded. Many developers in the installation process will appear the following errors, some solve the problem for a few days can not find the reason, in fact, php parsing phpiredis is the need to rely on apc and acpu extension, phpiredis compilation is also the need for the library of hiredis.

[root@localhost /data/wwwroot/code/_example/app]#php index.php
PHP Fatal error:  Call to undefined function phpiredis_connect() in /data/wwwroot/code/library/includes/class/memcachedb.php on line 75
gearhead commented 4 years ago

I have not experienced this. I have never installed or enabled them and the extension seems to work fine on armv6,7 and x64

nrk commented 4 years ago

APC and APCu do not have anything to do with phpiredis and hiredis, how is it even possible? If a phpiredis function cannot be found, it's a misconfiguration of PHP or phpiredis was not installed to begin with.