FS#64378 - [php-redis] does not load

Attached to Project: Community Packages
Opened by Jeff Smith (centralscrutinizer) - Monday, 04 November 2019, 00:10 GMT
Last edited by David Runge (dvzrv) - Thursday, 14 November 2019, 14:39 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To David Runge (dvzrv)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Redis 5.1.0-1 Community package

Redis: class not found when constructing object in php.
phpinfo() does not show redis module as loaded.
Installed 5.0.6-1 from AUR and it works perfectly.



Steps to reproduce:
Install php-redis 5.1.0-1
Uncomment /etc/php/conf.d/redis.ini [extension=redis]
Call sudo systemctl restart httpd
Run phpinfo() it will not show a loaded redis module.
Redis class not found when running application.


To get another version working:
Install phpredis-git from AUR 5.0.6-1
Uncomment /etc/php/conf.d/phpredis.ini [extension=redis]
Call sudo systemctl restart httpd
Run phpinfo() it will show a loaded module.
Works in application.
This task depends upon

Closed by  David Runge (dvzrv)
Thursday, 14 November 2019, 14:39 GMT
Reason for closing:  Fixed
Additional comments about closing:  Note added to config: php-redis 5.1.1-2
Comment by David Runge (dvzrv) - Wednesday, 13 November 2019, 23:01 GMT
@centralscrutinizer: Thanks for the report. However, I can not reproduce this. I'm currently not using php-redis in a global/system setup, but have it activated in a uwsgi setup.

Have you made sure, that you have php-igbinary activated (check /etc/php/conf.d/igbinary.ini)?

From what I can see in the PKGBUILD of phpredis-git [1] it doesn't rely on php-igbinary, hence I guess, that's why it "works" for you out-of-the-box.


[1] https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=phpredis-git
Comment by Jeff Smith (centralscrutinizer) - Thursday, 14 November 2019, 02:58 GMT
Loading igbinary worked! It would be nice however, if the /etc/php/conf.d/redis.ini had a line like "Be sure to load igbinary also."
Comment by David Runge (dvzrv) - Thursday, 14 November 2019, 08:43 GMT
@centralscrutinizer: Ideally this would become clear due to the dependency.

However, I can add a note to the php config snippet.
Comment by Jeff Smith (centralscrutinizer) - Thursday, 14 November 2019, 14:21 GMT
Thank you.

Loading...