How to disable debug mode and compile PHP extension without debug?
one text
I made a PHP extension with PHP 5.5.38 and got this warning :
PHP Warning: PHP Startup: mssql: Unable to initialize module
Module compiled with build ID=API20121212,NTS,debug
PHP compiled with build ID=API20121212,NTS
These options need to match
in Unknown on line 0
Run:
# cd /usr/php-5.5.38/ext/mssql/
# /usr/local/php/bin/phpize
# ./configure --with-php-config=/usr/local/php/bin/php-config --with-mssql=/usr/local/freetds/
# make && make install
Then I saw How to compile PHP extension without debug?
and remove '--enable-debug'
in my php-config,
# make clean all
# /usr/local/php/bin/phpize
# ./configure --with-php-config=/usr/local/php/bin/php-config --with-mssql=/usr/local/freetds/
# make && make install
But still got "need to match" warning. How to compile PHP extension without debug?
Source