{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/hhvm/issues/4915","labels_url":"https://api.github.com/repos/facebook/hhvm/issues/4915/labels{/name}","comments_url":"https://api.github.com/repos/facebook/hhvm/issues/4915/comments","events_url":"https://api.github.com/repos/facebook/hhvm/issues/4915/events","html_url":"https://github.com/facebook/hhvm/pull/4915","id":59278415,"number":4915,"title":"Implement auto-priming for generators","user":{"login":"nikic","id":216080,"avatar_url":"https://avatars.githubusercontent.com/u/216080?v=3","gravatar_id":"","url":"https://api.github.com/users/nikic","html_url":"https://github.com/nikic","followers_url":"https://api.github.com/users/nikic/followers","following_url":"https://api.github.com/users/nikic/following{/other_user}","gists_url":"https://api.github.com/users/nikic/gists{/gist_id}","starred_url":"https://api.github.com/users/nikic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikic/subscriptions","organizations_url":"https://api.github.com/users/nikic/orgs","repos_url":"https://api.github.com/users/nikic/repos","events_url":"https://api.github.com/users/nikic/events{/privacy}","received_events_url":"https://api.github.com/users/nikic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/hhvm/labels/CLA%20Signed","name":"CLA Signed","color":"009900"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-02-27T18:56:23Z","updated_at":"2015-08-31T12:49:09Z","closed_at":"2015-08-31T05:05:04Z","pull_request":{"url":"https://api.github.com/repos/facebook/hhvm/pulls/4915","html_url":"https://github.com/facebook/hhvm/pull/4915","diff_url":"https://github.com/facebook/hhvm/pull/4915.diff","patch_url":"https://github.com/facebook/hhvm/pull/4915.patch"},"body":"This implements auto-priming for generators to match the PHP 5 behavior. It's a partial fix of #1871, there are a number of other incompatibilities. Async generators don't use auto-priming.\r\n\r\nThe implementation uses the approach described in https://github.com/facebook/hhvm/issues/1871#issuecomment-53123517. This is my first PR to HHVM, so I have no idea what I'm doing ;)"},"comment":{"url":"https://api.github.com/repos/facebook/hhvm/issues/comments/136361991","html_url":"https://github.com/facebook/hhvm/pull/4915#issuecomment-136361991","issue_url":"https://api.github.com/repos/facebook/hhvm/issues/4915","id":136361991,"user":{"login":"nikic","id":216080,"avatar_url":"https://avatars.githubusercontent.com/u/216080?v=3","gravatar_id":"","url":"https://api.github.com/users/nikic","html_url":"https://github.com/nikic","followers_url":"https://api.github.com/users/nikic/followers","following_url":"https://api.github.com/users/nikic/following{/other_user}","gists_url":"https://api.github.com/users/nikic/gists{/gist_id}","starred_url":"https://api.github.com/users/nikic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikic/subscriptions","organizations_url":"https://api.github.com/users/nikic/orgs","repos_url":"https://api.github.com/users/nikic/repos","events_url":"https://api.github.com/users/nikic/events{/privacy}","received_events_url":"https://api.github.com/users/nikic/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T12:49:09Z","updated_at":"2015-08-31T12:49:09Z","body":"Awwwwww\r\n\r\nMaybe we can couple this to the PHP 7 runtime switch? If I got it right it's going to allow per-dir/per-file granularity, so if we change this only for PHP 7 mode this might allow gradually porting things?"}}