I\'ve upgraded my MacBook to Mavericks and ruined my development environment. The problem I have right now is that my pear/pecl still tries to install for my previous (5.3) vers
Encountered similar problem recently.
(Debian, PHP 7.3 just installed, was using PHP 7.2)
If anybody tried the highest voted answer but still not working. Here are the steps to debug:
And basically that's it.
Reason:
PECL requires phpize which is part of php-dev package. If phpize for the current version is not found, if will look for the previous version, which resulting a older PHP API number