{"action":"created","issue":{"url":"https://api.github.com/repos/zendframework/zf1/issues/64","labels_url":"https://api.github.com/repos/zendframework/zf1/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/zendframework/zf1/issues/64/comments","events_url":"https://api.github.com/repos/zendframework/zf1/issues/64/events","html_url":"https://github.com/zendframework/zf1/issues/64","id":12849718,"number":64,"title":"array property overriding not merging in Application.ini","user":{"login":"zfbot","id":2429506,"avatar_url":"https://avatars.githubusercontent.com/u/2429506?v=3","gravatar_id":"","url":"https://api.github.com/users/zfbot","html_url":"https://github.com/zfbot","followers_url":"https://api.github.com/users/zfbot/followers","following_url":"https://api.github.com/users/zfbot/following{/other_user}","gists_url":"https://api.github.com/users/zfbot/gists{/gist_id}","starred_url":"https://api.github.com/users/zfbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zfbot/subscriptions","organizations_url":"https://api.github.com/users/zfbot/orgs","repos_url":"https://api.github.com/users/zfbot/repos","events_url":"https://api.github.com/users/zfbot/events{/privacy}","received_events_url":"https://api.github.com/users/zfbot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zendframework/zf1/labels/wontfix","name":"wontfix","color":"eb6420"},{"url":"https://api.github.com/repos/zendframework/zf1/labels/Zend_Config","name":"Zend_Config","color":"008000"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2013-04-05T15:10:07Z","updated_at":"2015-01-08T22:12:17Z","closed_at":"2015-01-06T10:19:36Z","body":"\n#### Jira Information\n\n<table>\n    <tr>\n        <td>Original Issue:</td><td><a href=\"http://framework.zend.com/issues/browse/ZF-12539\">ZF-12539</a></td>\n    </tr>\n    <tr>\n        <td>Issue Type:</td><td>Bug</td>\n    </tr>\n    <tr>\n        <td>Reporter:</td><td>Omar Shaban</td>\n    </tr>\n    <tr>\n        <td>Created:</td><td>03/13/13</td>\n    </tr>\n    <tr>\n        <td>Assignee:</td><td></td>\n    </tr>\n    <tr>\n        <td>Components:</td><td>Zend_Config </td>\n    </tr>\n\n</table>\n\n\n#### Description\n\nIn config Ini, When inheriting environment from another, and appending to an existing array, it overrides its values instead of merging it\r\n\r\nexample\r\n[production]\r\nprops[]=\"A\"\r\n[development : production]\r\nprops[]=\"B\"\r\n\r\nusing development environment\r\noutput:\r\narray{\r\n    [0]=>\"B\"\r\n}\r\n\r\nExpected:\r\narray{\r\n    [0]=>\"A\"\r\n    [1]=>\"B\"\r\n}\r\n\r\nIn case I need to reset the array I can reset it using\r\nprops[]=\r\n\n\n"},"comment":{"url":"https://api.github.com/repos/zendframework/zf1/issues/comments/69259319","html_url":"https://github.com/zendframework/zf1/issues/64#issuecomment-69259319","issue_url":"https://api.github.com/repos/zendframework/zf1/issues/64","id":69259319,"user":{"login":"zetta","id":204105,"avatar_url":"https://avatars.githubusercontent.com/u/204105?v=3","gravatar_id":"","url":"https://api.github.com/users/zetta","html_url":"https://github.com/zetta","followers_url":"https://api.github.com/users/zetta/followers","following_url":"https://api.github.com/users/zetta/following{/other_user}","gists_url":"https://api.github.com/users/zetta/gists{/gist_id}","starred_url":"https://api.github.com/users/zetta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zetta/subscriptions","organizations_url":"https://api.github.com/users/zetta/orgs","repos_url":"https://api.github.com/users/zetta/repos","events_url":"https://api.github.com/users/zetta/events{/privacy}","received_events_url":"https://api.github.com/users/zetta/received_events","type":"User","site_admin":false},"created_at":"2015-01-08T22:12:17Z","updated_at":"2015-01-08T22:12:17Z","body":"@froschdesign that's not true. sometimes they merge and sometimes they overwrite (actually the method name is **merge**). \r\n- If array A has 3 childs and array B  has 1 then only the content of array B will be keept. \r\n- if array A(a,a,a,a,a) has 5 childs and array B(b,b) has 2 then the result will be (b,b,a,a,a).\r\n\r\nPlease reopen this issue. \r\n"}}