php 扩展 debug问题

 php安装时为debug模式

./configure  --prefix=/usr/local/php7.1.6-debug --with-curl --with-pcre-regex --enable-fpm --enable-opcache=no --enable-sockets --enable-debug

php扩展也为debug模式

vim config.m4

if test -z "$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

 

但在 /usr/local/php7.1.6-debug/bin/php -m|grep yac时,提示

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

 

很奇怪, yac模块安装时已经指定为debug,

后来查了 这篇文章, 意思 是说 在安装 php之后 ,安装yac时,没有执行make clean, 导致新的编译选项没有生效

 

解决:

执行make clean

再重新安装 yac 模块, 就好了

 

posted @ 2017-12-11 11:20  taek  阅读(486)  评论(0编辑  收藏  举报