Bug 282573 - databases/pecl-redis 5.3.7 does not work with PHP 8.4
Summary: databases/pecl-redis 5.3.7 does not work with PHP 8.4
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-05 21:16 UTC by nti
Modified: 2025-01-13 21:31 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (daniel)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nti 2024-11-05 21:16:00 UTC
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
Comment 1 Daniel Ylitalo 2024-11-12 12:22:36 UTC
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.
Comment 2 Mark 2025-01-13 21:31:21 UTC
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