``` php $data = array( "flags" => array( 0 => 16777216, 2 => 4 ) ); $data['flags'][1] = 65536; var_dump(msgpack_unpack(msgpack_pack($data)) == $data); ``` keys became random. also happens if there are arrays like `array('ley' => 2, 2 => 1, 1 => 3)`
Activity
shun0102 commentedon May 28, 2012
I got the same problem.
In my case, not just keys became random, but also keys was corrupted.
bobrik commentedon Jun 10, 2012
Good news everyone: I made pull request to fix this bug.
If you want it now, you may checkout my branch (php-fix) and rebuild module yourself.
shun0102 commentedon Jun 11, 2012
Thx!
Added is_map function to check is array map or plain array