分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 技术分享

php 扩展 debug问题

发布时间:2023-09-06 01:30责任编辑:郭大石关键词: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 模块, 就好了

php 扩展 debug问题

原文地址:http://www.cnblogs.com/taek/p/8022169.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved