I am not able to install php extensions like apcu for different php versions separately. I am running php7.1 and php7.3 (installed via brew) on MacOS Mojave
I already tried things like
pecl -d php_suffix=7.1 install <package>
as I found this suggestion here. But it doesn't work at all.
The specific problem is to install apcu for php7.1 while php7.3 is also installed. No matter what I do - apcu get's only available for php7.3.
When I run php -v
I get PHP 7.1
When I check the directory /usr/local/Cellar/php@7.1/7.1.30_1/include/php/ext
there is no apcu
Isn't there any way of telling pecl for which version it is supposed to install the extension?