{"action":"closed","number":1613,"pull_request":{"url":"https://api.github.com/repos/php/php-src/pulls/1613","id":49231884,"html_url":"https://github.com/php/php-src/pull/1613","diff_url":"https://github.com/php/php-src/pull/1613.diff","patch_url":"https://github.com/php/php-src/pull/1613.patch","issue_url":"https://api.github.com/repos/php/php-src/issues/1613","number":1613,"state":"closed","locked":false,"title":"Failing test with array_walk() and references","user":{"login":"marcioAlmada","id":227395,"avatar_url":"https://avatars.githubusercontent.com/u/227395?v=3","gravatar_id":"","url":"https://api.github.com/users/marcioAlmada","html_url":"https://github.com/marcioAlmada","followers_url":"https://api.github.com/users/marcioAlmada/followers","following_url":"https://api.github.com/users/marcioAlmada/following{/other_user}","gists_url":"https://api.github.com/users/marcioAlmada/gists{/gist_id}","starred_url":"https://api.github.com/users/marcioAlmada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcioAlmada/subscriptions","organizations_url":"https://api.github.com/users/marcioAlmada/orgs","repos_url":"https://api.github.com/users/marcioAlmada/repos","events_url":"https://api.github.com/users/marcioAlmada/events{/privacy}","received_events_url":"https://api.github.com/users/marcioAlmada/received_events","type":"User","site_admin":false},"body":"After a long time, revisiting issue #1267, I still could not fix it :neutral_face: but it looks like the bug only happens when the subject array has more than 2 items. The following variation shows no failure https://3v4l.org/8DHT1 :\r\n\r\n```php\r\n$parts = array (\r\n  'foo',\r\n  'bar',\r\n);\r\n\r\narray_walk($parts, function ($value, $key) use (&$parts) {\r\n    $parts = array_values($parts);\r\n});\r\n\r\necho \"Done\\n\";\r\n```\r\n\r\nI added an --XFAIL-- section to the pull requested test as @cmb69 asked, just in case we decide to merge it.","created_at":"2015-10-30T05:05:08Z","updated_at":"2016-09-04T12:23:27Z","closed_at":"2016-09-04T12:23:27Z","merged_at":null,"merge_commit_sha":"02f95ab7b7199cc7bd6ed50926c80ff18a891c9d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/php/php-src/pulls/1613/commits","review_comments_url":"https://api.github.com/repos/php/php-src/pulls/1613/comments","review_comment_url":"https://api.github.com/repos/php/php-src/pulls/comments{/number}","comments_url":"https://api.github.com/repos/php/php-src/issues/1613/comments","statuses_url":"https://api.github.com/repos/php/php-src/statuses/b48accb0d80bdd4e6c3cbbdc6e8611af2fdc3159","head":{"label":"marcioAlmada:bug/array-walk-ref","ref":"bug/array-walk-ref","sha":"b48accb0d80bdd4e6c3cbbdc6e8611af2fdc3159","user":{"login":"marcioAlmada","id":227395,"avatar_url":"https://avatars.githubusercontent.com/u/227395?v=3","gravatar_id":"","url":"https://api.github.com/users/marcioAlmada","html_url":"https://github.com/marcioAlmada","followers_url":"https://api.github.com/users/marcioAlmada/followers","following_url":"https://api.github.com/users/marcioAlmada/following{/other_user}","gists_url":"https://api.github.com/users/marcioAlmada/gists{/gist_id}","starred_url":"https://api.github.com/users/marcioAlmada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcioAlmada/subscriptions","organizations_url":"https://api.github.com/users/marcioAlmada/orgs","repos_url":"https://api.github.com/users/marcioAlmada/repos","events_url":"https://api.github.com/users/marcioAlmada/events{/privacy}","received_events_url":"https://api.github.com/users/marcioAlmada/received_events","type":"User","site_admin":false},"repo":{"id":29220106,"name":"php-src","full_name":"marcioAlmada/php-src","owner":{"login":"marcioAlmada","id":227395,"avatar_url":"https://avatars.githubusercontent.com/u/227395?v=3","gravatar_id":"","url":"https://api.github.com/users/marcioAlmada","html_url":"https://github.com/marcioAlmada","followers_url":"https://api.github.com/users/marcioAlmada/followers","following_url":"https://api.github.com/users/marcioAlmada/following{/other_user}","gists_url":"https://api.github.com/users/marcioAlmada/gists{/gist_id}","starred_url":"https://api.github.com/users/marcioAlmada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcioAlmada/subscriptions","organizations_url":"https://api.github.com/users/marcioAlmada/orgs","repos_url":"https://api.github.com/users/marcioAlmada/repos","events_url":"https://api.github.com/users/marcioAlmada/events{/privacy}","received_events_url":"https://api.github.com/users/marcioAlmada/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marcioAlmada/php-src","description":"The PHP Interpreter","fork":true,"url":"https://api.github.com/repos/marcioAlmada/php-src","forks_url":"https://api.github.com/repos/marcioAlmada/php-src/forks","keys_url":"https://api.github.com/repos/marcioAlmada/php-src/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marcioAlmada/php-src/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marcioAlmada/php-src/teams","hooks_url":"https://api.github.com/repos/marcioAlmada/php-src/hooks","issue_events_url":"https://api.github.com/repos/marcioAlmada/php-src/issues/events{/number}","events_url":"https://api.github.com/repos/marcioAlmada/php-src/events","assignees_url":"https://api.github.com/repos/marcioAlmada/php-src/assignees{/user}","branches_url":"https://api.github.com/repos/marcioAlmada/php-src/branches{/branch}","tags_url":"https://api.github.com/repos/marcioAlmada/php-src/tags","blobs_url":"https://api.github.com/repos/marcioAlmada/php-src/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marcioAlmada/php-src/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marcioAlmada/php-src/git/refs{/sha}","trees_url":"https://api.github.com/repos/marcioAlmada/php-src/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marcioAlmada/php-src/statuses/{sha}","languages_url":"https://api.github.com/repos/marcioAlmada/php-src/languages","stargazers_url":"https://api.github.com/repos/marcioAlmada/php-src/stargazers","contributors_url":"https://api.github.com/repos/marcioAlmada/php-src/contributors","subscribers_url":"https://api.github.com/repos/marcioAlmada/php-src/subscribers","subscription_url":"https://api.github.com/repos/marcioAlmada/php-src/subscription","commits_url":"https://api.github.com/repos/marcioAlmada/php-src/commits{/sha}","git_commits_url":"https://api.github.com/repos/marcioAlmada/php-src/git/commits{/sha}","comments_url":"https://api.github.com/repos/marcioAlmada/php-src/comments{/number}","issue_comment_url":"https://api.github.com/repos/marcioAlmada/php-src/issues/comments{/number}","contents_url":"https://api.github.com/repos/marcioAlmada/php-src/contents/{+path}","compare_url":"https://api.github.com/repos/marcioAlmada/php-src/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marcioAlmada/php-src/merges","archive_url":"https://api.github.com/repos/marcioAlmada/php-src/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marcioAlmada/php-src/downloads","issues_url":"https://api.github.com/repos/marcioAlmada/php-src/issues{/number}","pulls_url":"https://api.github.com/repos/marcioAlmada/php-src/pulls{/number}","milestones_url":"https://api.github.com/repos/marcioAlmada/php-src/milestones{/number}","notifications_url":"https://api.github.com/repos/marcioAlmada/php-src/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marcioAlmada/php-src/labels{/name}","releases_url":"https://api.github.com/repos/marcioAlmada/php-src/releases{/id}","deployments_url":"https://api.github.com/repos/marcioAlmada/php-src/deployments","created_at":"2015-01-14T01:03:12Z","updated_at":"2016-02-09T02:12:53Z","pushed_at":"2016-09-01T15:14:32Z","git_url":"git://github.com/marcioAlmada/php-src.git","ssh_url":"git@github.com:marcioAlmada/php-src.git","clone_url":"https://github.com/marcioAlmada/php-src.git","svn_url":"https://github.com/marcioAlmada/php-src","homepage":"http://www.php.net","size":257367,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"php:master","ref":"master","sha":"9ccb432cab331e3905e4c746324d0bd6dc31286a","user":{"login":"php","id":25158,"avatar_url":"https://avatars.githubusercontent.com/u/25158?v=3","gravatar_id":"","url":"https://api.github.com/users/php","html_url":"https://github.com/php","followers_url":"https://api.github.com/users/php/followers","following_url":"https://api.github.com/users/php/following{/other_user}","gists_url":"https://api.github.com/users/php/gists{/gist_id}","starred_url":"https://api.github.com/users/php/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/php/subscriptions","organizations_url":"https://api.github.com/users/php/orgs","repos_url":"https://api.github.com/users/php/repos","events_url":"https://api.github.com/users/php/events{/privacy}","received_events_url":"https://api.github.com/users/php/received_events","type":"Organization","site_admin":false},"repo":{"id":1903522,"name":"php-src","full_name":"php/php-src","owner":{"login":"php","id":25158,"avatar_url":"https://avatars.githubusercontent.com/u/25158?v=3","gravatar_id":"","url":"https://api.github.com/users/php","html_url":"https://github.com/php","followers_url":"https://api.github.com/users/php/followers","following_url":"https://api.github.com/users/php/following{/other_user}","gists_url":"https://api.github.com/users/php/gists{/gist_id}","starred_url":"https://api.github.com/users/php/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/php/subscriptions","organizations_url":"https://api.github.com/users/php/orgs","repos_url":"https://api.github.com/users/php/repos","events_url":"https://api.github.com/users/php/events{/privacy}","received_events_url":"https://api.github.com/users/php/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/php/php-src","description":"The PHP Interpreter","fork":false,"url":"https://api.github.com/repos/php/php-src","forks_url":"https://api.github.com/repos/php/php-src/forks","keys_url":"https://api.github.com/repos/php/php-src/keys{/key_id}","collaborators_url":"https://api.github.com/repos/php/php-src/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/php/php-src/teams","hooks_url":"https://api.github.com/repos/php/php-src/hooks","issue_events_url":"https://api.github.com/repos/php/php-src/issues/events{/number}","events_url":"https://api.github.com/repos/php/php-src/events","assignees_url":"https://api.github.com/repos/php/php-src/assignees{/user}","branches_url":"https://api.github.com/repos/php/php-src/branches{/branch}","tags_url":"https://api.github.com/repos/php/php-src/tags","blobs_url":"https://api.github.com/repos/php/php-src/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/php/php-src/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/php/php-src/git/refs{/sha}","trees_url":"https://api.github.com/repos/php/php-src/git/trees{/sha}","statuses_url":"https://api.github.com/repos/php/php-src/statuses/{sha}","languages_url":"https://api.github.com/repos/php/php-src/languages","stargazers_url":"https://api.github.com/repos/php/php-src/stargazers","contributors_url":"https://api.github.com/repos/php/php-src/contributors","subscribers_url":"https://api.github.com/repos/php/php-src/subscribers","subscription_url":"https://api.github.com/repos/php/php-src/subscription","commits_url":"https://api.github.com/repos/php/php-src/commits{/sha}","git_commits_url":"https://api.github.com/repos/php/php-src/git/commits{/sha}","comments_url":"https://api.github.com/repos/php/php-src/comments{/number}","issue_comment_url":"https://api.github.com/repos/php/php-src/issues/comments{/number}","contents_url":"https://api.github.com/repos/php/php-src/contents/{+path}","compare_url":"https://api.github.com/repos/php/php-src/compare/{base}...{head}","merges_url":"https://api.github.com/repos/php/php-src/merges","archive_url":"https://api.github.com/repos/php/php-src/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/php/php-src/downloads","issues_url":"https://api.github.com/repos/php/php-src/issues{/number}","pulls_url":"https://api.github.com/repos/php/php-src/pulls{/number}","milestones_url":"https://api.github.com/repos/php/php-src/milestones{/number}","notifications_url":"https://api.github.com/repos/php/php-src/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/php/php-src/labels{/name}","releases_url":"https://api.github.com/repos/php/php-src/releases{/id}","deployments_url":"https://api.github.com/repos/php/php-src/deployments","created_at":"2011-06-16T01:52:25Z","updated_at":"2016-09-03T20:12:48Z","pushed_at":"2016-09-04T11:01:13Z","git_url":"git://github.com/php/php-src.git","ssh_url":"git@github.com:php/php-src.git","clone_url":"https://github.com/php/php-src.git","svn_url":"https://github.com/php/php-src","homepage":"http://www.php.net","size":423639,"stargazers_count":9894,"watchers_count":9894,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3482,"mirror_url":null,"open_issues_count":325,"forks":3482,"open_issues":325,"watchers":9894,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/php/php-src/pulls/1613"},"html":{"href":"https://github.com/php/php-src/pull/1613"},"issue":{"href":"https://api.github.com/repos/php/php-src/issues/1613"},"comments":{"href":"https://api.github.com/repos/php/php-src/issues/1613/comments"},"review_comments":{"href":"https://api.github.com/repos/php/php-src/pulls/1613/comments"},"review_comment":{"href":"https://api.github.com/repos/php/php-src/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/php/php-src/pulls/1613/commits"},"statuses":{"href":"https://api.github.com/repos/php/php-src/statuses/b48accb0d80bdd4e6c3cbbdc6e8611af2fdc3159"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":4,"review_comments":0,"commits":1,"additions":21,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"nikic"}}