{"action":"opened","number":12307,"pull_request":{"url":"https://api.github.com/repos/phalcon/cphalcon/pulls/12307","id":88951893,"html_url":"https://github.com/phalcon/cphalcon/pull/12307","diff_url":"https://github.com/phalcon/cphalcon/pull/12307.diff","patch_url":"https://github.com/phalcon/cphalcon/pull/12307.patch","issue_url":"https://api.github.com/repos/phalcon/cphalcon/issues/12307","number":12307,"state":"open","locked":false,"title":"Issue with array_merge_recursive in ini.zep","user":{"login":"hinablue","id":315136,"avatar_url":"https://avatars.githubusercontent.com/u/315136?v=3","gravatar_id":"","url":"https://api.github.com/users/hinablue","html_url":"https://github.com/hinablue","followers_url":"https://api.github.com/users/hinablue/followers","following_url":"https://api.github.com/users/hinablue/following{/other_user}","gists_url":"https://api.github.com/users/hinablue/gists{/gist_id}","starred_url":"https://api.github.com/users/hinablue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hinablue/subscriptions","organizations_url":"https://api.github.com/users/hinablue/orgs","repos_url":"https://api.github.com/users/hinablue/repos","events_url":"https://api.github.com/users/hinablue/events{/privacy}","received_events_url":"https://api.github.com/users/hinablue/received_events","type":"User","site_admin":false},"body":"There (maybe) is the PHP core issue, not Phalcon. And I rewrite the array_merge_recursive like here,\r\n[http://php.net/manual/en/function.array-merge-recursive.php#96201](http://php.net/manual/en/function.array-merge-recursive.php#96201)\r\n\r\nUse `Phalcon\\Config\\Adapter\\Ini`, If I have ini file like,\r\n\r\n```\r\n[step]\r\nstep1.1 = A\r\nstep1.2 = B\r\nstep1.3 = C\r\n```\r\n\r\nOutput will be,\r\n\r\n```\r\narray(1) {\r\n  [\"step\"]=>\r\n  array(1) {\r\n    [\"step1\"]=>\r\n    array(2) {\r\n      [1]=>\r\n      string(1) \"B\"\r\n      [2]=>\r\n      string(1) \"C\"\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nThe 'A' will missing, but If,\r\n\r\n```\r\n[step]\r\nstep1.5 = X\r\nstep1.1 = A\r\nstep1.2 = B\r\nstep1.3 = C\r\n```\r\n\r\nOutput will be,\r\n\r\n```\r\narray(1) {\r\n  [\"step\"]=>\r\n  array(1) {\r\n    [\"step1\"]=>\r\n    array(2) {\r\n      [5]=>\r\n      string(1) \"X\"\r\n      [1]=>\r\n      string(1) \"A\"\r\n      [2]=>\r\n      string(1) \"B\"\r\n      [3]=>\r\n      string(1) \"C\"\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nThis issue is PHP's array_merge_recursive (maybe), so I rewrite an new function to do this in `ini.zep` and output correct what we want.\r\n\r\nThere is ini file,\r\n\r\n```\r\n[qq]\r\nstep1.1 = A\r\nstep1.2 = B\r\nstep1.3 = G\r\nstep2.1 = A\r\nstep2.2 = B\r\nstep2.3 = C\r\nstep12[3] = AA\r\nstep12[4] = BB\r\nstep12[5] = CC\r\nstep5.3 = AAA\r\nstep5.4 = BBBB\r\nstep5.1 = GGGG\r\nstep5.2 = TTTT\r\n```\r\n\r\nAnd output will be,\r\n\r\n```\r\nobject(Phalcon\\Config\\Adapter\\Ini)#1 (1) {\r\n  [\"qq\"]=>\r\n  object(Phalcon\\Config)#2 (4) {\r\n    [\"step1\"]=>\r\n    object(Phalcon\\Config)#3 (3) {\r\n      [\"1\"]=>\r\n      string(1) \"A\"\r\n      [\"2\"]=>\r\n      string(1) \"B\"\r\n      [\"3\"]=>\r\n      string(1) \"G\"\r\n    }\r\n    [\"step2\"]=>\r\n    object(Phalcon\\Config)#4 (3) {\r\n      [\"1\"]=>\r\n      string(1) \"A\"\r\n      [\"2\"]=>\r\n      string(1) \"B\"\r\n      [\"3\"]=>\r\n      string(1) \"C\"\r\n    }\r\n    [\"step12\"]=>\r\n    object(Phalcon\\Config)#5 (3) {\r\n      [\"3\"]=>\r\n      string(2) \"AA\"\r\n      [\"4\"]=>\r\n      string(2) \"BB\"\r\n      [\"5\"]=>\r\n      string(2) \"CC\"\r\n    }\r\n    [\"step5\"]=>\r\n    object(Phalcon\\Config)#6 (4) {\r\n      [\"3\"]=>\r\n      string(3) \"AAA\"\r\n      [\"4\"]=>\r\n      string(4) \"BBBB\"\r\n      [\"1\"]=>\r\n      string(4) \"GGGG\"\r\n      [\"2\"]=>\r\n      string(4) \"TTTT\"\r\n    }\r\n  }\r\n}\r\n```","created_at":"2016-10-12T04:27:47Z","updated_at":"2016-10-12T04:27:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/phalcon/cphalcon/pulls/12307/commits","review_comments_url":"https://api.github.com/repos/phalcon/cphalcon/pulls/12307/comments","review_comment_url":"https://api.github.com/repos/phalcon/cphalcon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/phalcon/cphalcon/issues/12307/comments","statuses_url":"https://api.github.com/repos/phalcon/cphalcon/statuses/2f6cd240e5ecd9fae7bc87a03ebd157907cc4bab","head":{"label":"hinablue:3.0.x","ref":"3.0.x","sha":"2f6cd240e5ecd9fae7bc87a03ebd157907cc4bab","user":{"login":"hinablue","id":315136,"avatar_url":"https://avatars.githubusercontent.com/u/315136?v=3","gravatar_id":"","url":"https://api.github.com/users/hinablue","html_url":"https://github.com/hinablue","followers_url":"https://api.github.com/users/hinablue/followers","following_url":"https://api.github.com/users/hinablue/following{/other_user}","gists_url":"https://api.github.com/users/hinablue/gists{/gist_id}","starred_url":"https://api.github.com/users/hinablue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hinablue/subscriptions","organizations_url":"https://api.github.com/users/hinablue/orgs","repos_url":"https://api.github.com/users/hinablue/repos","events_url":"https://api.github.com/users/hinablue/events{/privacy}","received_events_url":"https://api.github.com/users/hinablue/received_events","type":"User","site_admin":false},"repo":{"id":23827300,"name":"cphalcon","full_name":"hinablue/cphalcon","owner":{"login":"hinablue","id":315136,"avatar_url":"https://avatars.githubusercontent.com/u/315136?v=3","gravatar_id":"","url":"https://api.github.com/users/hinablue","html_url":"https://github.com/hinablue","followers_url":"https://api.github.com/users/hinablue/followers","following_url":"https://api.github.com/users/hinablue/following{/other_user}","gists_url":"https://api.github.com/users/hinablue/gists{/gist_id}","starred_url":"https://api.github.com/users/hinablue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hinablue/subscriptions","organizations_url":"https://api.github.com/users/hinablue/orgs","repos_url":"https://api.github.com/users/hinablue/repos","events_url":"https://api.github.com/users/hinablue/events{/privacy}","received_events_url":"https://api.github.com/users/hinablue/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hinablue/cphalcon","description":"Web framework delivered as a C-extension for PHP","fork":true,"url":"https://api.github.com/repos/hinablue/cphalcon","forks_url":"https://api.github.com/repos/hinablue/cphalcon/forks","keys_url":"https://api.github.com/repos/hinablue/cphalcon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hinablue/cphalcon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hinablue/cphalcon/teams","hooks_url":"https://api.github.com/repos/hinablue/cphalcon/hooks","issue_events_url":"https://api.github.com/repos/hinablue/cphalcon/issues/events{/number}","events_url":"https://api.github.com/repos/hinablue/cphalcon/events","assignees_url":"https://api.github.com/repos/hinablue/cphalcon/assignees{/user}","branches_url":"https://api.github.com/repos/hinablue/cphalcon/branches{/branch}","tags_url":"https://api.github.com/repos/hinablue/cphalcon/tags","blobs_url":"https://api.github.com/repos/hinablue/cphalcon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hinablue/cphalcon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hinablue/cphalcon/git/refs{/sha}","trees_url":"https://api.github.com/repos/hinablue/cphalcon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hinablue/cphalcon/statuses/{sha}","languages_url":"https://api.github.com/repos/hinablue/cphalcon/languages","stargazers_url":"https://api.github.com/repos/hinablue/cphalcon/stargazers","contributors_url":"https://api.github.com/repos/hinablue/cphalcon/contributors","subscribers_url":"https://api.github.com/repos/hinablue/cphalcon/subscribers","subscription_url":"https://api.github.com/repos/hinablue/cphalcon/subscription","commits_url":"https://api.github.com/repos/hinablue/cphalcon/commits{/sha}","git_commits_url":"https://api.github.com/repos/hinablue/cphalcon/git/commits{/sha}","comments_url":"https://api.github.com/repos/hinablue/cphalcon/comments{/number}","issue_comment_url":"https://api.github.com/repos/hinablue/cphalcon/issues/comments{/number}","contents_url":"https://api.github.com/repos/hinablue/cphalcon/contents/{+path}","compare_url":"https://api.github.com/repos/hinablue/cphalcon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hinablue/cphalcon/merges","archive_url":"https://api.github.com/repos/hinablue/cphalcon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hinablue/cphalcon/downloads","issues_url":"https://api.github.com/repos/hinablue/cphalcon/issues{/number}","pulls_url":"https://api.github.com/repos/hinablue/cphalcon/pulls{/number}","milestones_url":"https://api.github.com/repos/hinablue/cphalcon/milestones{/number}","notifications_url":"https://api.github.com/repos/hinablue/cphalcon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hinablue/cphalcon/labels{/name}","releases_url":"https://api.github.com/repos/hinablue/cphalcon/releases{/id}","deployments_url":"https://api.github.com/repos/hinablue/cphalcon/deployments","created_at":"2014-09-09T09:28:37Z","updated_at":"2016-10-12T04:02:43Z","pushed_at":"2016-10-12T04:10:13Z","git_url":"git://github.com/hinablue/cphalcon.git","ssh_url":"git@github.com:hinablue/cphalcon.git","clone_url":"https://github.com/hinablue/cphalcon.git","svn_url":"https://github.com/hinablue/cphalcon","homepage":"phalconphp.com","size":107116,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"phalcon:3.0.x","ref":"3.0.x","sha":"6534d22125e03ed2e03192861377aad631692a6c","user":{"login":"phalcon","id":1221505,"avatar_url":"https://avatars.githubusercontent.com/u/1221505?v=3","gravatar_id":"","url":"https://api.github.com/users/phalcon","html_url":"https://github.com/phalcon","followers_url":"https://api.github.com/users/phalcon/followers","following_url":"https://api.github.com/users/phalcon/following{/other_user}","gists_url":"https://api.github.com/users/phalcon/gists{/gist_id}","starred_url":"https://api.github.com/users/phalcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phalcon/subscriptions","organizations_url":"https://api.github.com/users/phalcon/orgs","repos_url":"https://api.github.com/users/phalcon/repos","events_url":"https://api.github.com/users/phalcon/events{/privacy}","received_events_url":"https://api.github.com/users/phalcon/received_events","type":"User","site_admin":false},"repo":{"id":2854337,"name":"cphalcon","full_name":"phalcon/cphalcon","owner":{"login":"phalcon","id":1221505,"avatar_url":"https://avatars.githubusercontent.com/u/1221505?v=3","gravatar_id":"","url":"https://api.github.com/users/phalcon","html_url":"https://github.com/phalcon","followers_url":"https://api.github.com/users/phalcon/followers","following_url":"https://api.github.com/users/phalcon/following{/other_user}","gists_url":"https://api.github.com/users/phalcon/gists{/gist_id}","starred_url":"https://api.github.com/users/phalcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phalcon/subscriptions","organizations_url":"https://api.github.com/users/phalcon/orgs","repos_url":"https://api.github.com/users/phalcon/repos","events_url":"https://api.github.com/users/phalcon/events{/privacy}","received_events_url":"https://api.github.com/users/phalcon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/phalcon/cphalcon","description":"Web framework delivered as a C-extension for PHP","fork":false,"url":"https://api.github.com/repos/phalcon/cphalcon","forks_url":"https://api.github.com/repos/phalcon/cphalcon/forks","keys_url":"https://api.github.com/repos/phalcon/cphalcon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phalcon/cphalcon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phalcon/cphalcon/teams","hooks_url":"https://api.github.com/repos/phalcon/cphalcon/hooks","issue_events_url":"https://api.github.com/repos/phalcon/cphalcon/issues/events{/number}","events_url":"https://api.github.com/repos/phalcon/cphalcon/events","assignees_url":"https://api.github.com/repos/phalcon/cphalcon/assignees{/user}","branches_url":"https://api.github.com/repos/phalcon/cphalcon/branches{/branch}","tags_url":"https://api.github.com/repos/phalcon/cphalcon/tags","blobs_url":"https://api.github.com/repos/phalcon/cphalcon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phalcon/cphalcon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phalcon/cphalcon/git/refs{/sha}","trees_url":"https://api.github.com/repos/phalcon/cphalcon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phalcon/cphalcon/statuses/{sha}","languages_url":"https://api.github.com/repos/phalcon/cphalcon/languages","stargazers_url":"https://api.github.com/repos/phalcon/cphalcon/stargazers","contributors_url":"https://api.github.com/repos/phalcon/cphalcon/contributors","subscribers_url":"https://api.github.com/repos/phalcon/cphalcon/subscribers","subscription_url":"https://api.github.com/repos/phalcon/cphalcon/subscription","commits_url":"https://api.github.com/repos/phalcon/cphalcon/commits{/sha}","git_commits_url":"https://api.github.com/repos/phalcon/cphalcon/git/commits{/sha}","comments_url":"https://api.github.com/repos/phalcon/cphalcon/comments{/number}","issue_comment_url":"https://api.github.com/repos/phalcon/cphalcon/issues/comments{/number}","contents_url":"https://api.github.com/repos/phalcon/cphalcon/contents/{+path}","compare_url":"https://api.github.com/repos/phalcon/cphalcon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phalcon/cphalcon/merges","archive_url":"https://api.github.com/repos/phalcon/cphalcon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phalcon/cphalcon/downloads","issues_url":"https://api.github.com/repos/phalcon/cphalcon/issues{/number}","pulls_url":"https://api.github.com/repos/phalcon/cphalcon/pulls{/number}","milestones_url":"https://api.github.com/repos/phalcon/cphalcon/milestones{/number}","notifications_url":"https://api.github.com/repos/phalcon/cphalcon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phalcon/cphalcon/labels{/name}","releases_url":"https://api.github.com/repos/phalcon/cphalcon/releases{/id}","deployments_url":"https://api.github.com/repos/phalcon/cphalcon/deployments","created_at":"2011-11-26T05:52:50Z","updated_at":"2016-10-12T02:18:26Z","pushed_at":"2016-10-12T04:27:47Z","git_url":"git://github.com/phalcon/cphalcon.git","ssh_url":"git@github.com:phalcon/cphalcon.git","clone_url":"https://github.com/phalcon/cphalcon.git","svn_url":"https://github.com/phalcon/cphalcon","homepage":"phalconphp.com","size":169826,"stargazers_count":7263,"watchers_count":7263,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1360,"mirror_url":null,"open_issues_count":744,"forks":1360,"open_issues":744,"watchers":7263,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/phalcon/cphalcon/pulls/12307"},"html":{"href":"https://github.com/phalcon/cphalcon/pull/12307"},"issue":{"href":"https://api.github.com/repos/phalcon/cphalcon/issues/12307"},"comments":{"href":"https://api.github.com/repos/phalcon/cphalcon/issues/12307/comments"},"review_comments":{"href":"https://api.github.com/repos/phalcon/cphalcon/pulls/12307/comments"},"review_comment":{"href":"https://api.github.com/repos/phalcon/cphalcon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/phalcon/cphalcon/pulls/12307/commits"},"statuses":{"href":"https://api.github.com/repos/phalcon/cphalcon/statuses/2f6cd240e5ecd9fae7bc87a03ebd157907cc4bab"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":151,"additions":385,"deletions":209,"changed_files":15}}
{"actor":{"display_login":"hinablue"}}