Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP: Unable to load dynamic library #46

Closed
tndhl opened this issue Apr 24, 2016 · 8 comments
Closed

PHP: Unable to load dynamic library #46

tndhl opened this issue Apr 24, 2016 · 8 comments
Labels

Comments

@tndhl
Copy link

tndhl commented Apr 24, 2016

I have compiled phpiredis with following commands:

git clone https://github.com/nrk/phpiredis.git
cd phpiredis
phpize && ./configure --enable-phpiredis
make && make install

And included library as follows: echo extension=/usr/lib64/php/5.5/modules/phpiredis.so > /etc/php.d/redis.ini

But I got this error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/5.5/modules/phpiredis.so' - /usr/lib64/php/5.5/modules/phpiredis.so: undefined symbol: redisReplyReaderGetError in Unknown on line 0

Could any one help?

@nickpastuhov
Copy link

redisReplyReaderGetError support removed in version 1.0.0: https://github.com/redis/hiredis/blob/master/CHANGELOG.md

@jbbrunsveld
Copy link

Pull request #47 should fix this issue.

@nrk
Copy link
Owner

nrk commented Jun 11, 2016

Please note that hiredis v1.0.0 is a work-in-progress and it's still unreleased so you should stick with hiredis v0.13 for now. For this reason I removed the bug label, I'll decide how to handle the transition in a few days after merging the php7 branch.

@devrck
Copy link

devrck commented Jun 11, 2019

@nrk any follow up?

@fridzema
Copy link

fridzema commented Jul 1, 2019

Same error in 2019:
php: symbol lookup error: /usr/lib/php/20180731/phpiredis.so: undefined symbol: redisReplyReaderCreate

Is this package still under development @nrk?

@devrck
Copy link

devrck commented Jul 2, 2019

@fridzema you need to use a hiredis v0.13

@yanzzchn
Copy link

'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.

@nrk
Copy link
Owner

nrk commented Sep 20, 2020

Chenges to support Hiredis >= 0.14, >= 1.0 have been merged in the v1.1 branch, the new minor release will be shipped in a few days is everything is fine. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants