Replies: 6 comments 4 replies
-
I tried to build it myself even though I suspected redis was compiled in and not loaded as module. And unfortunately that was correct assumption. Built them and loading: extension=/opt/homebrew/lib/php/pecl/20230831/igbinary.so igbinary works just fine, no surprise there. But redis does not: ❯ php --ri redis Warning: Module "redis" is already loaded in Unknown on line 0 Wrote down a few stats how to compile extention with support for lz4 and igbinary if it helps: Install lz4
Check what folder it's installed to, in my case:
Install igbinary
I build from source as there is a bug in the current release available through pecl that is fixed in master a couple of weeks ago. Read here: phpredis/phpredis#2452 |
Beta Was this translation helpful? Give feedback.
-
So it would be nice if you can either compile it with those settings. Or load redis as a extention module in php.ini so we can easily change it to our own version. Most long term solution would probably be to load as much as possible as extentions so we can load and unload anything we want so we don't need to get stuck while you consider some changes in core compiled extentions. |
Beta Was this translation helpful? Give feedback.
-
Sorry for spamming, but one interesting point. Not sure why php 8.3 in herd uses so old version of phpredis? Fresh install of Herd and php 8.3
Forge uses:
So can be worth doing something here for that reason too. |
Beta Was this translation helpful? Give feedback.
-
@cyppe PHP 8.3.7 on macOS now adds igbinary and lz4 support 🎉 |
Beta Was this translation helpful? Give feedback.
-
Thanks, thats so awesome! Will upgrade and try it. |
Beta Was this translation helpful? Give feedback.
-
Using Homebrew 4.4.19, here's how I got PHP 8.4.3 with the
In the last command, when prompted for This avoids having to download the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using the following serializer and compression from phpredis, as documented here:
https://laravel.com/docs/11.x/redis#phpredis-serialization
It would be really nice if igbinary and lz4 would be added. And to make it a bit more broadly usable probably add the other serializers and compressions supported by PhpRedis. But this combo is the most performant from my tests.
For what it's worth they exists on Forge out of the box if the goal is to be 1:1 compatible with Forge standard as it seems in other discussions about some services versions.
I am on Pro license.
Beta Was this translation helpful? Give feedback.
All reactions