Debug mode for PHP installation
./configure--prefix=/usr/local/php7.1.6-debug--with-curl--with-pcre-regex--enable-fpm--enable-opcache=no-- Enable-sockets --enable-debug
PHP extension also for debug mode
Vim CONFIG.M4
if " $PHP _DEBUG " ; Then Ac_arg_enable (Debug, [--enable-debug compile with debugging system], [php_debug= $enableval],[php_debug=No]) Fi
/usr/local/php7.1.6-debug/bin/phpize &&/configure--with-php-config=/usr/local/php7.1.6-debug/bin/ Php-config --enable-debug && make && make install
But when/usr/local/php7.1.6-debug/bin/php-m|grep YAC, the hint
Module compiled with Build id=api20160303,nts
PHP compiled with build id=api20160303,nts, DEBUG
These options need to match
In Unknown on line 0
It is strange that the YAC module is already specified as debug when it is installed.
Later this article, meaning that after the installation of PHP, the installation of YAC, did not do clean , resulting in the new compilation option does not take effect
Solve:
Perform make clean
And then reinstall the YAC module.
PHP Extension Debug problem