I've searched far and wide, tried everything but I can't get to install Xdebug on PHP 8.1
I've got multiple PHP versions installed via homebrew, when I switch to PHP 8.1 and try to install Xdebug I get the following:
BE-C02CRC3FMD6N:~ treynaert$ php -v
PHP 8.1.14 (cli) (built: Jan 9 2023 16:02:41) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.14, Copyright (c) Zend Technologies
BE-C02CRC3FMD6N:~ treynaert$ pecl install xdebug
pecl/xdebug requires PHP (version >= 8.0.0, version <= 8.2.99), installed version is 7.4.33
No valid packages found
install failed
As you can see, php -v
returns 8.1, phpinfo()
in the browser gives me the same. Though for some reason pecl thinks I'm on 7.4.
I'm on Mac OSX Catalina BTW (10.15.7)
Anyone has a clue?