GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||
GeezerVison is showing github.com — Add OPT_ASSOC for roundtrip serialization of map. by ranvis · Pull Request #58 · msgpack/msgpack-php Conversation
Contributor
Since PHP has no real array, unpacking both array and map into
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. Set OPT_ASSOC to false to pack stdClass instance in map and vice versa. Set OPT_PHPONLY to false in addition to pack any object into map.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
Codecov Report
@@ Coverage Diff @@ ## master #58 +/- ## ========================================== + Coverage 85.79% 85.97% +0.17% ========================================== Files 8 8 Lines 1345 1369 +24 ========================================== + Hits 1154 1177 +23 - Misses 191 192 +1
Continue to review full report at Codecov.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
usage: $msgpack = new MessagePack(); $msgpack->setOption(MessagePack::OPT_PHPONLY, false); $msgpack->setOption(MessagePack::OPT_ASSOC, false); $data = [0 => 1, 1 => 2, 2 => 3]; var_dump(bin2hex($msgpack->pack($data))); // string(8) "93010203" var_dump(bin2hex($msgpack->pack((object)$data))); // string(20) "83a13001a13102a13203" |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@m6w6 Is this still considered? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@ ## master #58 +/- ## ========================================== + Coverage 85.79% 85.97% +0.17% ========================================== Files 8 8 Lines 1345 1369 +24 ========================================== + Hits 1154 1177 +23 - Misses 191 192 +1 ☔ View full report in Codecov by Sentry. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.