TravisCI:如何根据PHP版本使用xdebug或phpdbg(~5.6或~7.0)

时间:2016-11-07 05:36:44

标签: laravel-5 travis-ci xdebug php-7 phpdbg

我已经看到XDebug在PHP 7下引发了Segmentation Fault,这种情况一直在发生在我和其他许多人身上。所以我得到了用PHP 7运行to sandwich the variable because my table names were numbers. Here is the final statement: $query101 = "select 1 from而不是使用XDebug的解决方案。

我的问题是我应该如何配置phpdbg根据我正在测试的PHP版本执行一个或另一个。

This is my current config file for PHP 7, also available here

travis.yml

使用这些设置我无法运行PHP 5.6的测试,并且当使用XDebug时,PHP7会失败,所以我有一种互斥问题。

有关此的任何提示吗?

这是Travis builds historythe current project files for PHP 5.6

1 个答案:

答案 0 :(得分:0)

由于在这种情况下似乎正在进行中,我决定继续使用XDebug,直到我完全转移到PHPDebug并将其用于PHP7 +和PHP5.6。

此时,使用XDebug + PHP7.1的构建进展顺利但是为PHP7.0引发了分段错误。但是,现在这对我来说还不错。

构建日志:

https://travis-ci.org/timegridio/timegrid/builds/173947875