{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/7987","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/7987/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/7987/comments","events_url":"https://api.github.com/repos/composer/composer/issues/7987/events","html_url":"https://github.com/composer/composer/issues/7987","id":409867005,"node_id":"MDU6SXNzdWU0MDk4NjcwMDU=","number":7987,"title":"Extensions loaded via `php -d` are not recognised","user":{"login":"duncan3dc","id":546811,"node_id":"MDQ6VXNlcjU0NjgxMQ==","avatar_url":"https://avatars2.githubusercontent.com/u/546811?v=4","gravatar_id":"","url":"https://api.github.com/users/duncan3dc","html_url":"https://github.com/duncan3dc","followers_url":"https://api.github.com/users/duncan3dc/followers","following_url":"https://api.github.com/users/duncan3dc/following{/other_user}","gists_url":"https://api.github.com/users/duncan3dc/gists{/gist_id}","starred_url":"https://api.github.com/users/duncan3dc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncan3dc/subscriptions","organizations_url":"https://api.github.com/users/duncan3dc/orgs","repos_url":"https://api.github.com/users/duncan3dc/repos","events_url":"https://api.github.com/users/duncan3dc/events{/privacy}","received_events_url":"https://api.github.com/users/duncan3dc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-02-13T15:41:37Z","updated_at":"2019-02-13T17:56:19Z","closed_at":"2019-02-13T17:56:19Z","author_association":"CONTRIBUTOR","body":"My `composer.json`:\r\n\r\n```json\r\n{\r\n    \"require\": {\r\n        \"ext-uopz\": \"*\"\r\n    }\r\n}\r\n```\r\n\r\nOutput of `composer diagnose`:\r\n\r\n```\r\nChecking composer.json: WARNING\r\nNo license specified, it is recommended to do so. For closed-source software you may use \"proprietary\" as license.\r\nChecking platform settings: OK\r\nChecking git settings: OK\r\nChecking http connectivity to packagist: OK\r\nChecking https connectivity to packagist: OK\r\nChecking github.com rate limit: OK\r\nChecking disk free space: OK\r\nChecking pubkeys: \r\nTags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0  87719BA6 8F3BB723 4E5D42D0 84A14642\r\nDev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B  0C708369 153E328C AD90147D AFE50952\r\nOK\r\nChecking composer version: OK\r\nComposer version: 1.8.4\r\nPHP version: 7.3.0\r\nPHP binary path: /usr/local/bin/php\r\n```\r\n\r\nWhen I run this command:\r\n\r\n```\r\nphp -d extension=uopz /usr/local/sbin/composer update\r\n```\r\n\r\nI get the following output:\r\n\r\n```\r\nLoading composer repositories with package information\r\nUpdating dependencies (including require-dev)\r\nYour requirements could not be resolved to an installable set of packages.\r\n\r\n  Problem 1\r\n    - The requested PHP extension ext-uopz * is missing from your system. Install or enable PHP's uopz extension.\r\n```\r\n\r\nAnd I expected this to happen:\r\n```\r\nLoading composer repositories with package information\r\nUpdating dependencies (including require-dev)\r\nNothing to install or update\r\nGenerating autoload files\r\n```\r\n\r\nIf I create a php.ini file containing just `extension=uopz` then the following works:\r\n`php -c /tmp/php.ini /usr/local/sbin/composer update`\r\nIt appears to be a specific problem with `-d`.\r\n_(apologised if this has been raised/answered before, `-d` is a very difficult thing to search for)_"},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/463300354","html_url":"https://github.com/composer/composer/issues/7987#issuecomment-463300354","issue_url":"https://api.github.com/repos/composer/composer/issues/7987","id":463300354,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2MzMwMDM1NA==","user":{"login":"duncan3dc","id":546811,"node_id":"MDQ6VXNlcjU0NjgxMQ==","avatar_url":"https://avatars2.githubusercontent.com/u/546811?v=4","gravatar_id":"","url":"https://api.github.com/users/duncan3dc","html_url":"https://github.com/duncan3dc","followers_url":"https://api.github.com/users/duncan3dc/followers","following_url":"https://api.github.com/users/duncan3dc/following{/other_user}","gists_url":"https://api.github.com/users/duncan3dc/gists{/gist_id}","starred_url":"https://api.github.com/users/duncan3dc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncan3dc/subscriptions","organizations_url":"https://api.github.com/users/duncan3dc/orgs","repos_url":"https://api.github.com/users/duncan3dc/repos","events_url":"https://api.github.com/users/duncan3dc/events{/privacy}","received_events_url":"https://api.github.com/users/duncan3dc/received_events","type":"User","site_admin":false},"created_at":"2019-02-13T17:56:19Z","updated_at":"2019-02-13T17:56:19Z","author_association":"CONTRIBUTOR","body":"Ah I wasn't aware of the limitations on the restarter, thanks for the pointer :+1: "}}
{"actor":{"display_login":"duncan3dc"}}