【发布时间】:2019-04-25 20:42:17
【问题描述】:
我正在关注https://xdebug.org/docs/install 指导方针
当我运行sudo make test 在我的MAC 2 PHP 版本安装PHP5 和PHP7 作为项目需要。
PHP : /usr/local/php5/bin/php
PHP_SAPI : cli
PHP_VERSION : 7.2.7
它给出了以下错误
=====================================================================
EXPECTED FAILED TEST SUMMARY
---------------------------------------------------------------------
Test for bug #1530: Code coverage incorrect for last code line in a loop [tests/bug01530.phpt] XFAIL REASON: PHP bug #76046: PHP generates "FE_FREE" opcode on the wrong line.
=====================================================================
You may have found a problem in PHP.
This report can be automatically sent to the PHP QA team at
http://qa.php.net/reports and http://news.php.net/php.qa.reports
This gives us a better understanding of PHP's behavior.
If you don't want to send the report immediately you can choose
option "s" to save it. You can then email it to qa-reports@lists.php.net later.
Do you want to send this report now? [Yns]:
我尝试了 2-3 次,但出现了同样的问题。
【问题讨论】:
-
使用像 docker 或 vagrant 这样的虚拟机。
-
已经在使用 VM docker & vagrant
-
如果你的
PHP_VERSION是7.2.7,你为什么要使用路径/usr/local/php5/bin/php? -
嗨 @G4Hu 在我的 apache 上,我为不同的项目设置了 2 个 PHP 版本 5 和 7。