Symptom: Nextcloud with redis as cache stutters with "Bad gateway" every few seconds PHP Log: said into stderr: "ld-elf.so.1: /usr/local/lib/php/20240924/redis.so: Undefined symbol "php_rand““ Upgrade my pecl-redis port to newest version 6.1.0, but without the patch files Now phpredis works, but someone who better knows than I should make the patch files
Hi! The patchfiles are there to support php 7, but as php 7 has been removed from the ports tree they can be deleted. To update the package you would probably only need to delete the files directory + bump the version number in the Makefile and run make makesum and provide a patch. I unfortunately don't have access to a FreeBSD box to sort this out and probably wont' have in a while, if you are able to provide a patch I'm happy to approve it though.
Same issue here with pkg packages on 14.2-RELEASE: php84-8.4.2 php84-pecl-redis-5.3.7_1 ...and some other php84-... packages, but not relevant for this bug. Using php-fpm with following setting to catch the error in the /var/log/php-fpm.log: catch_workers_output = yes