在本地用 vagrant 给 php 7.2 升级到 7.3 的时候,直接修改了 box/config.yml里面 php 版本 然后就 vagrant reload --provision 进行重新启动,然后 php 升级成功,但是在build xdebug的时候报错了。

TASK [geerlingguy.php-xdebug : Build Xdebug.] **********************************
failed: [项目名称] (item=make) => {"changed": true, "cmd": ["make"], "delta": "0:00:00.149477", "end": "2020-07-17 06:59:21.346123", "item": "make", "msg": "non-zero return code", "rc": 2, "start": "2020-07-17 06:59:21.196646", "stderr": "/root/php7.3/xdebug-2.6.1/xdebug_compat.c: In function 'xdebug_zval_ptr':\n/root/php7.3/xdebug-2.6.1/xdebug_compat.c:56:27: warning: passing argument 1 of 'zend_get_zval_ptr' makes pointer from integer without a cast [-Wint-conversion]\n return zend_get_zval_ptr(op_type, node, zdata, &should_free, BP_VAR_R);\n ^\nIn file included from /usr/include/php/20180731/Zend/zend_API.h:29:0,\n from /usr/include/php/20180731/main/php.h:38,\n from /root/php7.3/xdebug-2.6.1/xdebug_compat.c:43:\n/usr/include/php/20180731/Zend/zend_execute.h:331:16: note: expected 'const zend_op * {aka const struct _zend_op *}' but argument is of type 'int'\n ZEND_API zval *zend_get_zval_ptr(const zend_op *opline, int op_type, const znode_op *node, const zend_execute_data *execute_data, zend_free_op *should_free, int type);\n ^\n/root/php7.3/xdebug-2.6.1/xdebug_compat.c:56:36: warning: passing argument 2 of 'zend_get_zval_ptr' makes integer from pointer without a cast [-Wint-conversion]\n return zend_get_zval_ptr(op_type, node, zdata, &should_free, BP_VAR_R);\n ^\nIn file included from /usr/include/php/20180731/Zend/zend_API.h:29:0,\n from /usr/include/php/20180731/main/php.h:38,\n from /root/php7.3/xdebug-2.6.1/xdebug_compat.c:43:\n/usr/include/php/20180731/Zend/zend_execute.h:331:16: note: expected 'int' but argument is of type 'const znode_op * {aka const union _znode_op *}'\n ZEND_API zval *zend_get_zval_ptr(const zend_op *opline, int op_type, const znode_op *node, const zend_execute_data *execute_data, zend_free_op *should_free, int type);\n ^\n/root/php7.3/xdebug-2.6.1/xdebug_compat.c:56:42: warning: passing argument 3 of 'zend_get_zval_ptr' from incompatible pointer type [-Wincompatible-pointer-types]\n return zend_get_zval_ptr(op_type, node, zdata, &should_free, BP_VAR_R);\n ^\nIn file included from /usr/include/php/20180731/Zend/zend_API.h:29:0,\n from /usr/include/php/20180731/main/php.h:38,\n from /root/php7.3/xdebug-2.6.1/xdebug_compat.c:43:\n/usr/include/php/20180731/Zend/zend_execute.h:331:16: note: expected 'const znode_op * {aka const union _znode_op *}' but argument is of type 'zend_execute_data * {aka struct _zend_execute_data *}'\n ZEND_API zval *zend_get_zval_ptr(const zend_op *opline, int op_type, const znode_op *node, const zend_execute_data *execute_data, zend_free_op *should_free, int type);\n ^\n/root/php7.3/xdebug-2.6.1/xdebug_compat.c:56:49: warning: passing argument 4 of 'zend_get_zval_ptr' from incompatible pointer type [-Wincompatible-pointer-types]\n return zend_get_zval_ptr(op_type, node, zdata, &should_free, BP_VAR_R);\n ^\nIn file included from /usr/include/php/20180731/Zend/zend_API.h:29:0,\n from /usr/include/php/20180731/main/php.h:38,\n from /root/php7.3/xdebug-2.6.1/xdebug_compat.c:43:\n/usr/include/php/20180731/Zend/zend_execute.h:331:16: note: expected 'const zend_execute_data * {aka const struct _zend_execute_data *}' but argument is of type 'zval ** {aka struct _zval_struct **}'\n ZEND_API zval *zend_get_zval_ptr(const zend_op *opline, int op_type, const znode_op *node, const zend_execute_data *execute_data, zend_free_op *should_free, int type);\n ^\n/root/php7.3/xdebug-2.6.1/xdebug_compat.c:56:9: error: too few arguments to function 'zend_get_zval_ptr'\n return zend_get_zval_ptr(op_type, node, zdata, &should_free, BP_VAR_R);\n ^\nIn file included from /usr/include/php/20180731/Zend/zend_API.h:29:0,\n from /usr/include/php/20180731/main/php.h:38,\n from /root/php7.3/xdebug-2.6.1/xdebug_compat.c:43:\n/usr/include/php/20180731/Zend/zend_execute.h:331:16: note: declared here\n ZEND_API zval *zend_get_zval_ptr(const zend_op *opline, int op_type, const znode_op *node, const zend_execute_data *execute_data, zend_free_op *should_free, int type);\n ^\n/root/php7.3/xdebug-2.6.1/xdebug_compat.c: In function 'xdebug_setcookie':\n/root/php7.3/xdebug-2.6.1/xdebug_compat.c:194:80: warning: passing argument 8 of 'php_setcookie' makes pointer from integer without a cast [-Wint-conversion]\n php_setcookie(name_s, value_s, expires, path_s, domain_s, secure, url_encode, httponly);\n ^\nIn file included from /root/php7.3/xdebug-2.6.1/xdebug_compat.h:25:0,\n from /root/php7.3/xdebug-2.6.1/xdebug_compat.c:45:\n/usr/include/php/20180731/ext/standard/head.h:40:12: note: expected 'zend_string * {aka struct _zend_string *}' but argument is of type 'int'\n PHPAPI int php_setcookie(zend_string *name, zend_string *value, time_t expires, zend_string *path, zend_string *domain, int secure, int httponly, zend_string *samesite, int url_encode);\n ^\n/root/php7.3/xdebug-2.6.1/xdebug_compat.c:194:2: error: too few arguments to function 'php_setcookie'\n php_setcookie(name_s, value_s, expires, path_s, domain_s, secure, url_encode, httponly);\n ^\nIn file included from /root/php7.3/xdebug-2.6.1/xdebug_compat.h:25:0,\n from /root/php7.3/xdebug-2.6.1/xdebug_compat.c:45:\n/usr/include/php/20180731/ext/standard/head.h:40:12: note: declared here\n PHPAPI int php_setcookie(zend_string *name, zend_string *value, time_t expires, zend_string *path, zend_string *domain, int secure, int httponly, zend_string *samesite, int url_encode);\n ^\nmake: *** [xdebug_compat.lo] Error 1", "stderr_lines": ["/root/php7.3/xdebug-2.6.1/xdebug_compat.c: In function 'xdebug_zval_ptr':", "/root/php7.3/xdebug-2.6.1/xdebug_compat.c:56:27: warning: passing argument 1 of 'zend_get_zval_ptr' makes pointer from integer without a cast [-Wint-conversion]", " return zend_get_zval_ptr(op_type, node, zdata, &should_free, BP_VAR_R);", " ^", "In file included from /usr/include/php/20180731/Zend/zend_API.h:29:0,", " from /usr/include/php/20180731/main/php.h:38,", " from /root/php7.3/xdebug-2.6.1/xdebug_compat.c:43:", "/usr/include/php/20180731/Zend/zend_execute.h:331:16: note: expected 'const zend_op * {aka const struct _zend_op *}' but argument is of type 'int'", " ZEND_API zval *zend_get_zval_ptr(const zend_op *opline, int op_type, const znode_op *node, const zend_execute_data *execute_data, zend_free_op *should_free, int type);", " ^", "/root/php7.3/xdebug-2.6.1/xdebug_compat.c:56:36: warning: passing argument 2 of 'zend_get_zval_ptr' makes integer from pointer without a cast [-Wint-conversion]", " return zend_get_zval_ptr(op_type, node, zdata, &should_free, BP_VAR_R);", " ^", "In file included from /usr/include/php/20180731/Zend/zend_API.h:29:0,", " from /usr/include/php/20180731/main/php.h:38,", " from /root/php7.3/xdebug-2.6.1/xdebug_compat.c:43:", "/usr/include/php/20180731/Zend/zend_execute.h:331:16: note: expected 'int' but argument is of type 'const znode_op * {aka const union _znode_op *}'", " ZEND_API zval *zend_get_zval_ptr(const zend_op *opline, int op_type, const znode_op *node, const zend_execute_data *execute_data, zend_free_op *should_free, int type);", " ^", "/root/php7.3/xdebug-2.6.1/xdebug_compat.c:56:42: warning: passing argument 3 of 'zend_get_zval_ptr' from incompatible pointer type [-Wincompatible-pointer-types]", " return zend_get_zval_ptr(op_type, node, zdata, &should_free, BP_VAR_R);", " ^", "In file included from /usr/include/php/20180731/Zend/zend_API.h:29:0,", " from /usr/include/php/20180731/main/php.h:38,", " from /root/php7.3/xdebug-2.6.1/xdebug_compat.c:43:", "/usr/include/php/20180731/Zend/zend_execute.h:331:16: note: expected 'const znode_op * {aka const union _znode_op *}' but argument is of type 'zend_execute_data * {aka struct _zend_execute_data *}'", " ZEND_API zval *zend_get_zval_ptr(const zend_op *opline, int op_type, const znode_op *node, const zend_execute_data *execute_data, zend_free_op *should_free, int type);", " ^", "/root/php7.3/xdebug-2.6.1/xdebug_compat.c:56:49: warning: passing argument 4 of 'zend_get_zval_ptr' from incompatible pointer type [-Wincompatible-pointer-types]", " return zend_get_zval_ptr(op_type, node, zdata, &should_free, BP_VAR_R);", " ^", "In file included from /usr/include/php/20180731/Zend/zend_API.h:29:0,", " from /usr/include/php/20180731/main/php.h:38,", " from /root/php7.3/xdebug-2.6.1/xdebug_compat.c:43:", "/usr/include/php/20180731/Zend/zend_execute.h:331:16: note: expected 'const zend_execute_data * {aka const struct _zend_execute_data *}' but argument is of type 'zval ** {aka struct _zval_struct **}'", " ZEND_API zval *zend_get_zval_ptr(const zend_op *opline, int op_type, const znode_op *node, const zend_execute_data *execute_data, zend_free_op *should_free, int type);", " ^", "/root/php7.3/xdebug-2.6.1/xdebug_compat.c:56:9: error: too few arguments to function 'zend_get_zval_ptr'", " return zend_get_zval_ptr(op_type, node, zdata, &should_free, BP_VAR_R);", " ^", "In file included from /usr/include/php/20180731/Zend/zend_API.h:29:0,", " from /usr/include/php/20180731/main/php.h:38,", " from /root/php7.3/xdebug-2.6.1/xdebug_compat.c:43:", "/usr/include/php/20180731/Zend/zend_execute.h:331:16: note: declared here", " ZEND_API zval *zend_get_zval_ptr(const zend_op *opline, int op_type, const znode_op *node, const zend_execute_data *execute_data, zend_free_op *should_free, int type);", " ^", "/root/php7.3/xdebug-2.6.1/xdebug_compat.c: In function 'xdebug_setcookie':", "/root/php7.3/xdebug-2.6.1/xdebug_compat.c:194:80: warning: passing argument 8 of 'php_setcookie' makes pointer from integer without a cast [-Wint-conversion]", " php_setcookie(name_s, value_s, expires, path_s, domain_s, secure, url_encode, httponly);", " ^", "In file included from /root/php7.3/xdebug-2.6.1/xdebug_compat.h:25:0,", " from /root/php7.3/xdebug-2.6.1/xdebug_compat.c:45:", "/usr/include/php/20180731/ext/standard/head.h:40:12: note: expected 'zend_string * {aka struct _zend_string *}' but argument is of type 'int'", " PHPAPI int php_setcookie(zend_string *name, zend_string *value, time_t expires, zend_string *path, zend_string *domain, int secure, int httponly, zend_string *samesite, int url_encode);", " ^", "/root/php7.3/xdebug-2.6.1/xdebug_compat.c:194:2: error: too few arguments to function 'php_setcookie'", " php_setcookie(name_s, value_s, expires, path_s, domain_s, secure, url_encode, httponly);", " ^", "In file included from /root/php7.3/xdebug-2.6.1/xdebug_compat.h:25:0,", " from /root/php7.3/xdebug-2.6.1/xdebug_compat.c:45:", "/usr/include/php/20180731/ext/standard/head.h:40:12: note: declared here", " PHPAPI int php_setcookie(zend_string *name, zend_string *value, time_t expires, zend_string *path, zend_string *domain, int secure, int httponly, zend_string *samesite, int url_encode);", " ^", "make: *** [xdebug_compat.lo] Error 1"], "stdout": "/bin/bash /root/php7.3/xdebug-2.6.1/libtool --mode=compile cc -I. -I/root/php7.3/xdebug-2.6.1 -DPHP_ATOM_INC -I/root/php7.3/xdebug-2.6.1/include -I/root/php7.3/xdebug-2.6.1/main -I/root/php7.3/xdebug-2.6.1 -I/usr/include/php/20180731 -I/usr/include/php/20180731/main -I/usr/include/php/20180731/TSRM -I/usr/include/php/20180731/Zend -I/usr/include/php/20180731/ext -I/usr/include/php/20180731/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/php7.3/xdebug-2.6.1/xdebug_compat.c -o xdebug_compat.lo \nlibtool: compile: cc -I. -I/root/php7.3/xdebug-2.6.1 -DPHP_ATOM_INC -I/root/php7.3/xdebug-2.6.1/include -I/root/php7.3/xdebug-2.6.1/main -I/root/php7.3/xdebug-2.6.1 -I/usr/include/php/20180731 -I/usr/include/php/20180731/main -I/usr/include/php/20180731/TSRM -I/usr/include/php/20180731/Zend -I/usr/include/php/20180731/ext -I/usr/include/php/20180731/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/php7.3/xdebug-2.6.1/xdebug_compat.c -fPIC -DPIC -o .libs/xdebug_compat.o\nMakefile:234: recipe for target 'xdebug_compat.lo' failed", "stdout_lines": ["/bin/bash /root/php7.3/xdebug-2.6.1/libtool --mode=compile cc -I. -I/root/php7.3/xdebug-2.6.1 -DPHP_ATOM_INC -I/root/php7.3/xdebug-2.6.1/include -I/root/php7.3/xdebug-2.6.1/main -I/root/php7.3/xdebug-2.6.1 -I/usr/include/php/20180731 -I/usr/include/php/20180731/main -I/usr/include/php/20180731/TSRM -I/usr/include/php/20180731/Zend -I/usr/include/php/20180731/ext -I/usr/include/php/20180731/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/php7.3/xdebug-2.6.1/xdebug_compat.c -o xdebug_compat.lo ", "libtool: compile: cc -I. -I/root/php7.3/xdebug-2.6.1 -DPHP_ATOM_INC -I/root/php7.3/xdebug-2.6.1/include -I/root/php7.3/xdebug-2.6.1/main -I/root/php7.3/xdebug-2.6.1 -I/usr/include/php/20180731 -I/usr/include/php/20180731/main -I/usr/include/php/20180731/TSRM -I/usr/include/php/20180731/Zend -I/usr/include/php/20180731/ext -I/usr/include/php/20180731/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/php7.3/xdebug-2.6.1/xdebug_compat.c -fPIC -DPIC -o .libs/xdebug_compat.o", "Makefile:234: recipe for target 'xdebug_compat.lo' failed"]}

然后也不知道到底怎么回事,是不是该修改Xdebug相关配置,就去box配置里面找网上找,只发现了 这些。

# XDebug configuration.
php_xdebug_version: 2.6.1
# Change this value to 1 in order to enable xdebug by default.
php_xdebug_default_enable: 0
php_xdebug_coverage_enable: 0
php_xdebug_cli_disable: 'yes'
php_xdebug_remote_enable: 1
php_xdebug_remote_connect_back: 1
# Use PHPSTORM for PHPStorm, sublime.xdebug for Sublime Text.
php_xdebug_idekey: PHPSTORM
php_xdebug_max_nesting_level: 256
php_xdebug_remote_port: '9000'
php_memory_limit: 512M

然后就按

php_xdebug_version:

这个关键字搜 发现了这篇文章

https://blog.csdn.net/longxingjiang/article/details/83505559

让我根据phpinifo() 去找对应需要安装的xdebug版本

于是我就把phpinfo()复制出来然后去了这个网站

https://xdebug.org/wizard

然后得到了结果

好的 ,看来是我需要安装 2.9.6 版本的xdebug,因为我现在用的是php7.3了。老版本 2.6.1 是对 php 7.2 使用的。

这 vagrant 里面升级 php 版本真方便啊,改改配置,重新reload就好了。

vagrant 中 php 7.2 升级到 php 7.3的更多相关文章

  1. 在C#中实现软件自动升级

    在C#中实现软件自动升级 winform程序相对web程序而言,功能更强大,编程更方便,但软件更新却相当麻烦,要到客户端一台一台地升级,本文结合实际情况,通过软件实现自动升级,弥补了这一缺陷,有较好的 ...

  2. vagrant中的precise64使用静态的能和host所在局域网的其他机器互相通信

    vagrant中的precise64使用静态的能和host所在局域网的其他机器互相通信

  3. CVE-2020-0668-Windows服务跟踪中的普通特权升级错误

    CVE-2020-0668-Windows服务跟踪中的普通特权升级错误 在这里中,我将讨论在Windows Service跟踪中发现的任意文件移动漏洞.从我的测试来看,它影响了从Vista到10的所有 ...

  4. EMQX 在 Kubernetes 中如何进行优雅升级

    背景 为了降低 EMQX 在 Kubernetes 上的部署.运维成本,我们将一些日常运维能力进行总结.抽象并整合到代码中,以 EMQX Kubernetes Operator 的方式帮助用户实现 E ...

  5. 给vagrant中的precise64升级VBoxGuestAdditions

    位置:/usr/share/virtualbox/VBoxGuestAdditions.iso 在host(ubuntu 12.04 64)中: 查看虚拟机的名字:jb@H38:~/vm/vagran ...

  6. 转载 在 Linux 虚拟机中手动安装或升级 VMware Tools

    http://pubs.vmware.com/workstation-12/index.jsp?lang=zh_CN&topic=/com.vmware.ws.using.doc/GUID-0 ...

  7. Vagrant 中配置局域网端口

    1. 在自己的电脑中想使用Vagrant在局域网中安装centos,并将其ip释放到局域网中提供给自己的机器访问,这种操作需要在VagrantFile中加入如下配置 config.vm.network ...

  8. 在 Linux 虚拟机中手动安装或升级 VMware Tools

    对于 Linux 虚拟机,您可以使用命令行工具手动安装或升级 VMware Tools. 本次Linux 虚拟机为CentOS6.5 先决条件开启虚拟机.确认客户机操作系统正在运行.由于 VMware ...

  9. Java归去来第3集:Eclipse中给动态模块升级

    一.前言 如果还不了解剧情,请返回第2集的剧情          Java归去来第2集:利用Eclipse创建Maven Web项目 二.开始升级动态模块 2.1:查看原来的版本 我们先来看看Ecli ...

  10. iOS appStore中的应用 实现升级功能

    .h文件中 <UIAlertViewDelegate> .m文件中 #import "SBJson.h"        //解析sbjson 数据 - (void)vi ...

随机推荐

  1. mysql事务隔离级别及MVCC 原理

    一.事务的隔离级别 为了保证事务与事务之间的修改操作不会互相影响,innodb希望不同的事务是隔离的执行的,互不干扰. 两个并发的事务在执行过程中有 读读.读写(一个事务在读某条数据的同时另一个事务在 ...

  2. java基础 -线程(基础)的 笔记

    581,多线程机制 因为需要敌人的坦克可以自由移动并发射子弹,我们的坦克可以移动并发射子弹,这些要用到线程的知识. 根据JConsole监控线程执行情况,发现,主线程执行完了,子线程还没有执行完,并不 ...

  3. 音视频FAQ(三):音画不同步

    摘要 本文介绍了音画不同步问题的五个因素:编码和封装阶段.网络传输阶段.播放器中的处理阶段.源内容产生的问题以及转码和编辑.针对这些因素,提出了相应的解决方案,如使用标准化工具.选择强大的传输协议.自 ...

  4. JavaScript – ES Module

    前言 关于 JavaScript Modular 的多种版本和历史看这篇. 参考: 阮一峰 – Module 的语法 阮一峰 – Module 的加载实现 Export 语法 逐个 export 在想 ...

  5. [OI] 指针与迭代器

    取地址与解引用 一般来说,我们有一个取地址符 & 可以返回该变量的地址. int main(){ int a; cout<<&a; } 0x6ffe1c 如果我们现在有一个 ...

  6. Go语言对接微信支付与退款全流程指南

    目录: 一.准备工作 二.初始化微信支付客户端 三.实现支付功能 1. 付款时序图 2. 实现不同场景下的支付 WAP端支付 PC端支付 Android端支付 3. 解析支付回调 四.实现退款功能 退 ...

  7. HarmonyOS NEXT 底部选项卡功能

    在HarmonyOS NEXT中使用ArkTS实现一个完整的底部选项卡功能,可以通过以下几个步骤来完成: 创建Tabs组件:使用Tabs组件来创建底部导航栏,并通过barPosition属性设置其位置 ...

  8. vue前端开发仿钉图系列(7)底部数据列表的开发详解

    底部数据列表主要是记录图层下面对应的点线面数据,点击单元行或者查看或者编辑,弹出右侧编辑页面,点击单元行地图定位到相应的绘图位置.里面的难点1是动态绑定字段管理编辑的字段以及对应的value值,2是点 ...

  9. Vue3中的新的内置组件

    在vue2中的内置组件: 动态路由中的 component :作用:动态显示路由的挂载点,使用 is 属性动态显示组件 : keep-alive :作用:使被包裹的组件保留状态,避免被重新渲染 : 路 ...

  10. 装有docker的虚拟机环境ping宿主机失败

    当我用docker network create 创建了一个网络后 [root@localhost ~]# docker network create kong-net 5c035564f9b4649 ...