{"action":"created","issue":{"url":"https://api.github.com/repos/composer/semver/issues/39","repository_url":"https://api.github.com/repos/composer/semver","labels_url":"https://api.github.com/repos/composer/semver/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/composer/semver/issues/39/comments","events_url":"https://api.github.com/repos/composer/semver/issues/39/events","html_url":"https://github.com/composer/semver/pull/39","id":163256219,"number":39,"title":"Parsing \"7.0.8-1~dotdeb\" version pattern for PHP","user":{"login":"janit","id":198965,"avatar_url":"https://avatars.githubusercontent.com/u/198965?v=3","gravatar_id":"","url":"https://api.github.com/users/janit","html_url":"https://github.com/janit","followers_url":"https://api.github.com/users/janit/followers","following_url":"https://api.github.com/users/janit/following{/other_user}","gists_url":"https://api.github.com/users/janit/gists{/gist_id}","starred_url":"https://api.github.com/users/janit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janit/subscriptions","organizations_url":"https://api.github.com/users/janit/orgs","repos_url":"https://api.github.com/users/janit/repos","events_url":"https://api.github.com/users/janit/events{/privacy}","received_events_url":"https://api.github.com/users/janit/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-06-30T20:11:05Z","updated_at":"2016-07-02T09:12:07Z","closed_at":"2016-07-02T09:12:07Z","pull_request":{"url":"https://api.github.com/repos/composer/semver/pulls/39","html_url":"https://github.com/composer/semver/pull/39","diff_url":"https://github.com/composer/semver/pull/39.diff","patch_url":"https://github.com/composer/semver/pull/39.patch"},"body":"At least the Dotdeb (https://www.dotdeb.org) packaging uses the format 7.0.8-1~dotdeb for version numbers. This causes PHP version checks to fail:\r\n\r\n```\r\n[UnexpectedValueException]\r\nInvalid version string \"7.0.8-1~dotdeb\"\r\n```\r\n\r\nThis PR adds parsing that will match this pattern to semver."},"comment":{"url":"https://api.github.com/repos/composer/semver/issues/comments/230092228","html_url":"https://github.com/composer/semver/pull/39#issuecomment-230092228","issue_url":"https://api.github.com/repos/composer/semver/issues/39","id":230092228,"user":{"login":"Seldaek","id":183678,"avatar_url":"https://avatars.githubusercontent.com/u/183678?v=3","gravatar_id":"","url":"https://api.github.com/users/Seldaek","html_url":"https://github.com/Seldaek","followers_url":"https://api.github.com/users/Seldaek/followers","following_url":"https://api.github.com/users/Seldaek/following{/other_user}","gists_url":"https://api.github.com/users/Seldaek/gists{/gist_id}","starred_url":"https://api.github.com/users/Seldaek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seldaek/subscriptions","organizations_url":"https://api.github.com/users/Seldaek/orgs","repos_url":"https://api.github.com/users/Seldaek/repos","events_url":"https://api.github.com/users/Seldaek/events{/privacy}","received_events_url":"https://api.github.com/users/Seldaek/received_events","type":"User","site_admin":false},"created_at":"2016-07-02T09:12:07Z","updated_at":"2016-07-02T09:12:07Z","body":"This belongs in the platform repo for sure, but the current code in 1.1.3 that stof linked to already strips `-*` or `~*` which should take care of `7.0.8-1~dotdeb` as `7.0.8`, is this not the case? If you still get the issue with latest composer then please report it again on the composer repo."}}
{"actor":{"display_login":"Seldaek"}}