Installing '/usr/local/lib/php/extensions/no-debug-non-zts-20190902/xdebug.so' If upgrading to PHP8 is not an option, you can install an earlier version of Xdebug onto your PHP7 environment Start PHP 7.4 container and install Xdebug docker run -rm -it php:7.4 pecl install xdebug-3.1.5 With Xdebug v3.2.0, Copyright (c) 2002-2022, by Derick Rethans Solution 2: Install older version of xdebug 3.1.5 Zend Engine v4.2.1, Copyright (c) Zend Technologies You should add "zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20220829/xdebug.so" to php.ini Enable xdebug docker-php-ext-enable xdebug Check Xdebug is installed and running php -v Install ok: channel:///xdebug-3.2.0Ĭonfiguration option "php_ini" is not set to php.ini location Installing '/usr/local/lib/php/extensions/no-debug-non-zts-20220829/xdebug.so' Start PHP 8 container and install Xdebug docker run -rm -it php:8 pecl install xdebug Upgrading will allow the benefit of Xdebug 3.2 but likely a host of other fixes and performance improvements as a by product. This would be the recommended option, if available. Install an earlier version of Xdebug i.e.As a result, trying to install this on a PHP version lower than this results in this error. Installing Xdebug on PHP7.4 returns an error stating "pecl/xdebug requires PHP (version >= 8.0.0, version = 8.0.0, version <= 8.2.99), installed version is 7.4.33Īt the time of writing, Xdebug 3.2 is the latest stable version and PECL will attempt to install this, however, Xdebug 3.2 requires at least PHP 8 or later.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |