{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/5566","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/5566/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/5566/comments","events_url":"https://api.github.com/repos/composer/composer/issues/5566/events","html_url":"https://github.com/composer/composer/issues/5566","id":168635483,"number":5566,"title":"[ErrorException] Undefined index: 0 when run : hhvm composer.phar install","user":{"login":"bbichero","id":10926081,"avatar_url":"https://avatars.githubusercontent.com/u/10926081?v=3","gravatar_id":"","url":"https://api.github.com/users/bbichero","html_url":"https://github.com/bbichero","followers_url":"https://api.github.com/users/bbichero/followers","following_url":"https://api.github.com/users/bbichero/following{/other_user}","gists_url":"https://api.github.com/users/bbichero/gists{/gist_id}","starred_url":"https://api.github.com/users/bbichero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbichero/subscriptions","organizations_url":"https://api.github.com/users/bbichero/orgs","repos_url":"https://api.github.com/users/bbichero/repos","events_url":"https://api.github.com/users/bbichero/events{/privacy}","received_events_url":"https://api.github.com/users/bbichero/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/composer/composer/labels/Bug","name":"Bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":43,"created_at":"2016-08-01T12:35:56Z","updated_at":"2016-08-02T11:52:54Z","closed_at":null,"body":"Hi everyone,\r\n\r\nAll is in the title, fews days i have this issue.\r\n\r\nWith the following composer.json:\r\n\r\n```json\r\n{\r\n\t\"require\":\r\n\t{\r\n\t\t\"facebook/xhp-lib\": \"2.2\"\r\n\t}\r\n}\r\n```\r\n\r\nWhen I run this command:\r\n\r\n```\r\nhhvm composer install -vvv\r\n```\r\n\r\nI get this output:\r\n\r\n```\r\nReading ./composer.json\r\nLoading config file ./composer.json\r\nChecked CA file /usr/local/etc/openssl/cert.pem: valid\r\nExecuting command (/Users/Bicheron/Desktop/dev/xhp_test): git branch --no-color --no-abbrev -v\r\n\r\n\r\n  [ErrorException]\r\n  Undefined index: 0\r\n\r\nException trace:\r\n () at phar://composer.phar/bin/../src/../vendor/symfony/process/Pipes/AbstractPipes.php:140\r\n Composer\\Util\\ErrorHandler::handle() at phar://composer.phar/bin/../src/../vendor/symfony/process/Pipes/AbstractPipes.php:140\r\n Symfony\\Component\\Process\\Pipes\\AbstractPipes->write() at phar://composer.phar/bin/../src/../vendor/symfony/process/Pipes/UnixPipes.php:98\r\n Symfony\\Component\\Process\\Pipes\\UnixPipes->readAndWrite() at phar://composer.phar/bin/../src/../vendor/symfony/process/Process.php:1359\r\n Symfony\\Component\\Process\\Process->readPipes() at phar://composer.phar/bin/../src/../vendor/symfony/process/Process.php:1279\r\n Symfony\\Component\\Process\\Process->updateStatus() at phar://composer.phar/bin/../src/../vendor/symfony/process/Process.php:305\r\n Symfony\\Component\\Process\\Process->start() at phar://composer.phar/bin/../src/../vendor/symfony/process/Process.php:201\r\n Symfony\\Component\\Process\\Process->run() at phar://composer.phar/bin/../src/../src/Composer/Util/ProcessExecutor.php:68\r\n Composer\\Util\\ProcessExecutor->execute() at phar://composer.phar/bin/../src/../src/Composer/Package/Version/VersionGuesser.php:94\r\n Composer\\Package\\Version\\VersionGuesser->guessGitVersion() at phar://composer.phar/bin/../src/../src/Composer/Package/Version/VersionGuesser.php:67\r\n Composer\\Package\\Version\\VersionGuesser->guessVersion() at phar://composer.phar/bin/../src/../src/Composer/Package/Loader/RootPackageLoader.php:76\r\n Composer\\Package\\Loader\\RootPackageLoader->load() at phar://composer.phar/bin/../src/../src/Composer/Factory.php:333\r\n Composer\\Factory->createComposer() at phar://composer.phar/bin/../src/../src/Composer/Factory.php:554\r\n Composer\\Factory::create() at phar://composer.phar/bin/../src/../src/Composer/Console/Application.php:318\r\n Composer\\Console\\Application->getComposer() at phar://composer.phar/bin/../src/../src/Composer/Console/Application.php:430\r\n Composer\\Console\\Application->getPluginCommands() at phar://composer.phar/bin/../src/../src/Composer/Console/Application.php:135\r\n Composer\\Console\\Application->doRun() at phar://composer.phar/bin/../src/../vendor/symfony/console/Application.php:123\r\n Symfony\\Component\\Console\\Application->run() at phar://composer.phar/bin/../src/../src/Composer/Console/Application.php:104\r\n Composer\\Console\\Application->run() at phar://composer.phar/bin/composer:43\r\n include() at /Users/Bicheron/Desktop/dev/xhp_test/composer.phar:25\r\n```\r\n\r\nMy hhvm php.ini  :\r\n\r\n```\r\n; php options\r\nsession.save_handler = files\r\nsession.save_path = /usr/local/var/lib/hhvm/sessions\r\nsession.gc_maxlifetime = 1440\r\n\r\n; hhvm specific\r\nhhvm.log.level = Warning\r\nhhvm.log.always_log_unhandled_exceptions = true\r\nhhvm.log.runtime_error_reporting_level = 8191\r\nhhvm.mysql.typed_results = false\r\n```\r\n\r\nThanks for you help, i read a lot of thread but i can't fix my problem ...\r\n"},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/236881761","html_url":"https://github.com/composer/composer/issues/5566#issuecomment-236881761","issue_url":"https://api.github.com/repos/composer/composer/issues/5566","id":236881761,"user":{"login":"alcohol","id":21414,"avatar_url":"https://avatars.githubusercontent.com/u/21414?v=3","gravatar_id":"","url":"https://api.github.com/users/alcohol","html_url":"https://github.com/alcohol","followers_url":"https://api.github.com/users/alcohol/followers","following_url":"https://api.github.com/users/alcohol/following{/other_user}","gists_url":"https://api.github.com/users/alcohol/gists{/gist_id}","starred_url":"https://api.github.com/users/alcohol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcohol/subscriptions","organizations_url":"https://api.github.com/users/alcohol/orgs","repos_url":"https://api.github.com/users/alcohol/repos","events_url":"https://api.github.com/users/alcohol/events{/privacy}","received_events_url":"https://api.github.com/users/alcohol/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T11:52:54Z","updated_at":"2016-08-02T11:52:54Z","body":"Does hhvm support `-r` ?\r\n\r\nIf not, just create:\r\n\r\n**file.php**\r\n``` php\r\n<?php\r\n\r\nvar_dump(json_decode(file_get_contents(\"php://stdin\"), true));\r\n```\r\n\r\nand then run\r\n\r\n```\r\ncurl -s https://dump.robbast.nl/segfault.json | hhvm file.php\r\n```"}}
{"actor":{"display_login":"alcohol"}}