debug build php,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 模块, 就好了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值