{"action":"created","issue":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/5780","repository_url":"https://api.github.com/repos/travis-ci/travis-ci","labels_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/5780/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/5780/comments","events_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/5780/events","html_url":"https://github.com/travis-ci/travis-ci/issues/5780","id":140381299,"number":5780,"title":"Make `composer` run without xdebug","user":{"login":"staabm","id":120441,"avatar_url":"https://avatars.githubusercontent.com/u/120441?v=3","gravatar_id":"","url":"https://api.github.com/users/staabm","html_url":"https://github.com/staabm","followers_url":"https://api.github.com/users/staabm/followers","following_url":"https://api.github.com/users/staabm/following{/other_user}","gists_url":"https://api.github.com/users/staabm/gists{/gist_id}","starred_url":"https://api.github.com/users/staabm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/staabm/subscriptions","organizations_url":"https://api.github.com/users/staabm/orgs","repos_url":"https://api.github.com/users/staabm/repos","events_url":"https://api.github.com/users/staabm/events{/privacy}","received_events_url":"https://api.github.com/users/staabm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/travis-ci/travis-ci/labels/php","name":"php","color":"006b75"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-03-12T12:56:01Z","updated_at":"2016-09-23T13:45:26Z","closed_at":null,"body":"Per https://getcomposer.org/doc/articles/troubleshooting.md#xdebug-impact-on-composer it is recommended to run `composer` without xdebug extensions beeing loaded to increase runtime performance by 3x. \r\nwould be great when the default `composer` command available in php builds would not run with xdebug.\r\nI guess not loading xdebug with `php` itself would be too much of a Bc break, so doing it on composer only would seem like a good fit. `composer install` takes most of the time in small/mid-sized php-projects (a lot more then most unit suites take)\r\n\r\nSee e.g. https://travis-ci.org/fruux/sabre-xml/jobs/113732266"},"comment":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/comments/249197235","html_url":"https://github.com/travis-ci/travis-ci/issues/5780#issuecomment-249197235","issue_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/5780","id":249197235,"user":{"login":"theofidry","id":5175937,"avatar_url":"https://avatars.githubusercontent.com/u/5175937?v=3","gravatar_id":"","url":"https://api.github.com/users/theofidry","html_url":"https://github.com/theofidry","followers_url":"https://api.github.com/users/theofidry/followers","following_url":"https://api.github.com/users/theofidry/following{/other_user}","gists_url":"https://api.github.com/users/theofidry/gists{/gist_id}","starred_url":"https://api.github.com/users/theofidry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theofidry/subscriptions","organizations_url":"https://api.github.com/users/theofidry/orgs","repos_url":"https://api.github.com/users/theofidry/repos","events_url":"https://api.github.com/users/theofidry/events{/privacy}","received_events_url":"https://api.github.com/users/theofidry/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T13:45:26Z","updated_at":"2016-09-23T13:45:26Z","body":"Update: this can actually break on some builds (e.g. PHP 7.1) where there is no `xdebug.ini` file. Instead I'm using the following:\r\n\r\n```bash\r\nXDEBUG_INI=\"/home/travis/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini\"\r\nif [ ! -f \"$XDEBUG_INI\" ]; then\r\n    return\r\nfi\r\n\r\nfunction composer()\r\n{\r\n  mv $XDEBUG_INI ~/xdebug.ini\r\n  COMPOSER=\"$(which composer)\"\r\n  $COMPOSER \"$@\"\r\n  STATUS=$?\r\n  mv ~/xdebug.ini $XDEBUG_INI\r\n\r\n  return $STATUS\r\n}\r\n```\r\n\r\n@BanzaiMan any chance to have than natively on Travis builds? I've been successfully using it from PHP 5.3 to nightly (7.2-dev) works like a charm."}}
{"actor":{"display_login":"theofidry"}}