Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Fix generating array with unsorted keys #4566

Conversation

ftdebugger
Copy link
Contributor

For example array

$value = array(
    1 => 'a',
    0 => 'b',
    'c'
)

generating to

array(
    1 => 'a',
    'b', // this value will be lost, because it will be rewrite by value 'c'
    2 => 'c'
)

this patch fix it, and do as expected

array(
    1 => 'a',
    0 => 'b',
    'c'
)

@ghost ghost assigned weierophinney Jun 7, 2013
weierophinney added a commit that referenced this pull request Jun 7, 2013
weierophinney added a commit that referenced this pull request Jun 7, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants