Я установил Xdebug, но не могу найти его в phpinfo()
выводе.
Я работаю согласно https://xdebug.org/wizard.php:
Индивидуальные инструкции по установке
Краткое описание
Xdebug installed: no
Server API: FPM/FastCGI
Windows: no
Zend Server: no
PHP Version: 7.2.14-1
Zend API nr: 320170718
PHP API nr: 20170718
Debug Build: no
Thread Safe Build: no
OPcache Loaded: no
Configuration File Path: /etc/php/7.2/fpm
Configuration File: /etc/php/7.2/fpm/php.ini
Extensions directory: /usr/lib/php/20170718
Инструкция
Download xdebug-2.7.0.tgz
Install the pre-requisites for compiling PHP extensions.
On your Ubuntu system, install them with: apt-get install php-dev autoconf automake
Unpack the downloaded file with tar -xvzf xdebug-2.7.0.tgz
Run: cd xdebug-2.7.0
Run: phpize (See the FAQ if you don't have phpize).
As part of its output it should show:
Configuring for:
...
Zend Module Api No: 20170718
Zend Extension Api No: 320170718
If it does not, you are using the wrong phpize. Please follow this FAQ entry and skip the next step.
Run: ./configure
Run: make
Run: cp modules/xdebug.so /usr/lib/php/20170718
Edit /etc/php/7.2/fpm/php.ini and add the line
zend_extension = /usr/lib/php/20170718/xdebug.so
Restart the webserver
перезапустите php и nginx, он все еще не работает.
Когда я выполняю php -m|grep xdebug
, возвращается:
Не удалось загрузить /usr/lib/php/20180731/xdebug.so: /usr/lib/php/2017/xdebug.so: неопределенный символ: zend_post_startup_cb
Я не знаю, что такое zend_post_startup_cb
; Я не могу найти какую-либо информацию на сайте.