我正在尝试在我的composer.json中使用"ext-SimpleXML": "^7.1",并且我正在使用travis作为我的测试框架。在本地,一切正常,但在travis上(使用composer install时),我总是收到错误消息:
The requested PHP extension ext-simplexml ^7.1 has
Problem 3
- The requested PHP extension ext-simplexml * is missing from your system.- braintree/braintree_php 3.7.0 requires ext-curl * -> the requested PHP extension curl is missing- phpunit/phpunit 4.1.0 requires ext-dom * -> the requested PHP extensi
., 3.164.1] require ext-simplexml * -> it is missing from your system.我可以--ignore-platform-req=ext-simplexml,它解决了这个问题,但缺少其他扩展的错误。 比如ext-json, ext-pcre失踪了。为了解决这个问题,我可以执行这个--ignore-platform-req=ext-simplexml --ignore-platform-req=ext-json --ignore-platform-req