PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272451
Upstream issue: https://github.com/phpredis/phpredis/issues/2041
Without patch port doesn't work with PHP 8.1 and probably with 8.0, 8.2 and 8.3 too.
Approved by maintainer: Daniel Ylitalo <daniel@blodan.se>.