Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fix generating array with unsorted keys #4566

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

ftdebugger commented May 30, 2013

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 weierophinney added a commit that referenced this pull request Jun 7, 2013

@weierophinney weierophinney Merge pull request #4566 from ftdebugger/zend_code_value_generator_issue
Fix generating array with unsorted keys
3b4dc87

@weierophinney weierophinney added a commit that referenced this pull request Jun 7, 2013

@weierophinney weierophinney Merge branch 'hotfix/4566' into develop
Forward port #4566
87f22c1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment