Cannot load Xdebug - it was already loaded

Dravenk:d8 longxianwen$ php -v
Cannot load Xdebug - it was already loaded
PHP 7.2.5 (cli) (built: Apr 26 2018 12:07:32) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
     With Xdebug v2.6.0, Copyright (c) 2002-2018, by Derick Rethans
     With Zend OPcache v7.2.5, Copyright (c) 1999-2018, by Zend Technologies
Check the directory where the php configuration file is located

Dravenk:~ longxianwen$ php -i | grep -i configuration
Configuration File (php.ini) Path => /usr/local/etc/php/7.2
Loaded Configuration File => /usr/local/etc/php/7.2/php.ini
Configuration
Go to the PHP configuration file directory to view xdebug related configuration information:

Dravenk:~ longxianwen$ cd /usr/local/etc/php/7.2
Dravenk: 7.2 longxianwen$ grep -r xdebug *
The reason for the problem is that the following line is in both the php.ini and conf.d/ext-xdebug.ini files:

Zend_extension="xdebug.so"
Comment out one of them.

Source: https://www.longxianwen.net

Comments

Popular Posts