{"action":"created","issue":{"url":"https://api.github.com/repos/llaville/php-compat-info/issues/209","labels_url":"https://api.github.com/repos/llaville/php-compat-info/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/llaville/php-compat-info/issues/209/comments","events_url":"https://api.github.com/repos/llaville/php-compat-info/issues/209/events","html_url":"https://github.com/llaville/php-compat-info/issues/209","id":96373269,"number":209,"title":"PHP feature detection versions overridden if any function defined after usage","user":{"login":"bjork","id":102611,"avatar_url":"https://avatars.githubusercontent.com/u/102611?v=3","gravatar_id":"","url":"https://api.github.com/users/bjork","html_url":"https://github.com/bjork","followers_url":"https://api.github.com/users/bjork/followers","following_url":"https://api.github.com/users/bjork/following{/other_user}","gists_url":"https://api.github.com/users/bjork/gists{/gist_id}","starred_url":"https://api.github.com/users/bjork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjork/subscriptions","organizations_url":"https://api.github.com/users/bjork/orgs","repos_url":"https://api.github.com/users/bjork/repos","events_url":"https://api.github.com/users/bjork/events{/privacy}","received_events_url":"https://api.github.com/users/bjork/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/llaville/php-compat-info/labels/bug","name":"bug","color":"e10c02"}],"state":"open","locked":false,"assignee":{"login":"llaville","id":364342,"avatar_url":"https://avatars.githubusercontent.com/u/364342?v=3","gravatar_id":"","url":"https://api.github.com/users/llaville","html_url":"https://github.com/llaville","followers_url":"https://api.github.com/users/llaville/followers","following_url":"https://api.github.com/users/llaville/following{/other_user}","gists_url":"https://api.github.com/users/llaville/gists{/gist_id}","starred_url":"https://api.github.com/users/llaville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llaville/subscriptions","organizations_url":"https://api.github.com/users/llaville/orgs","repos_url":"https://api.github.com/users/llaville/repos","events_url":"https://api.github.com/users/llaville/events{/privacy}","received_events_url":"https://api.github.com/users/llaville/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/llaville/php-compat-info/milestones/43","html_url":"https://github.com/llaville/php-compat-info/milestones/4.5.0","labels_url":"https://api.github.com/repos/llaville/php-compat-info/milestones/43/labels","id":1335416,"number":43,"title":"4.5.0","description":"","creator":{"login":"llaville","id":364342,"avatar_url":"https://avatars.githubusercontent.com/u/364342?v=3","gravatar_id":"","url":"https://api.github.com/users/llaville","html_url":"https://github.com/llaville","followers_url":"https://api.github.com/users/llaville/followers","following_url":"https://api.github.com/users/llaville/following{/other_user}","gists_url":"https://api.github.com/users/llaville/gists{/gist_id}","starred_url":"https://api.github.com/users/llaville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llaville/subscriptions","organizations_url":"https://api.github.com/users/llaville/orgs","repos_url":"https://api.github.com/users/llaville/repos","events_url":"https://api.github.com/users/llaville/events{/privacy}","received_events_url":"https://api.github.com/users/llaville/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2015-10-02T18:54:44Z","updated_at":"2015-10-02T18:57:36Z","due_on":"2015-10-03T22:00:00Z","closed_at":null},"comments":4,"created_at":"2015-07-21T17:34:21Z","updated_at":"2015-10-04T21:52:40Z","closed_at":null,"body":"Declaring a new function seems to reset the versions to default ones, at least for versions updated by PHP features. `computePhpFeatureVersions` calls `updateLocalVersions` with correct versions, but when entering a new function those seem to get lost somehow.\r\n\r\nIt is easy to test by adding a line `function foo() {}` to the end of any of the test fixtures that `PhpFeaturesIssueTest` uses. All the tests fail after that change."},"comment":{"url":"https://api.github.com/repos/llaville/php-compat-info/issues/comments/145391595","html_url":"https://github.com/llaville/php-compat-info/issues/209#issuecomment-145391595","issue_url":"https://api.github.com/repos/llaville/php-compat-info/issues/209","id":145391595,"user":{"login":"llaville","id":364342,"avatar_url":"https://avatars.githubusercontent.com/u/364342?v=3","gravatar_id":"","url":"https://api.github.com/users/llaville","html_url":"https://github.com/llaville","followers_url":"https://api.github.com/users/llaville/followers","following_url":"https://api.github.com/users/llaville/following{/other_user}","gists_url":"https://api.github.com/users/llaville/gists{/gist_id}","starred_url":"https://api.github.com/users/llaville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llaville/subscriptions","organizations_url":"https://api.github.com/users/llaville/orgs","repos_url":"https://api.github.com/users/llaville/repos","events_url":"https://api.github.com/users/llaville/events{/privacy}","received_events_url":"https://api.github.com/users/llaville/received_events","type":"User","site_admin":false},"created_at":"2015-10-04T21:52:40Z","updated_at":"2015-10-04T21:52:40Z","body":"I'll continue tomorrow my tests, (before officially released version 4.5) but it seems fixed now ! If you have time to test on your side, your help will be appreciated."}}