Title: Invalid integer string convertion from PHP serialized .msgpack · Issue #226 · msgpack/msgpack-javascript · GitHub
Open Graph Title: Invalid integer string convertion from PHP serialized .msgpack · Issue #226 · msgpack/msgpack-javascript
X Title: Invalid integer string convertion from PHP serialized .msgpack · Issue #226 · msgpack/msgpack-javascript
Description: Hi, I am currently working on a project where I serialize JSON objects using the php library msgpack-php, but when I try to deserialize these objects using the javascript library msgpack-javascript, my integers are truncated. PHP : $data...
Open Graph Description: Hi, I am currently working on a project where I serialize JSON objects using the php library msgpack-php, but when I try to deserialize these objects using the javascript library msgpack-javascript...
X Description: Hi, I am currently working on a project where I serialize JSON objects using the php library msgpack-php, but when I try to deserialize these objects using the javascript library msgpack-javascript...
Opengraph URL: https://github.com/msgpack/msgpack-javascript/issues/226
X: @github
Domain: Github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Invalid integer string convertion from PHP serialized .msgpack","articleBody":"Hi,\r\n\r\nI am currently working on a project where I serialize JSON objects using the php library `msgpack-php`, but when I try to deserialize these objects using the javascript library `msgpack-javascript`, my integers are truncated.\r\n\r\nPHP :\r\n```php\r\n$data = [\r\n '7355750935770677725' =\u003e \"test\",\r\n];\r\n\r\n$msg = msgpack_pack($data);\r\n\r\n...\r\n```\r\n\r\nJS :\r\n```javascript\r\nimport { decode } from '@msgpack/msgpack';\r\n\r\nconst decoded = decode(entry);\r\n\r\nconsole.log(decoded)\r\n```\r\n\r\nResult : \r\n```\r\n{ '7355750935770677000': 'test' }\r\n```\r\n\r\nAs you can see the last three digits of my integer are set to `0`.\r\n\r\nThis seems to be an interoperability problem between the php library and Node.js","author":{"url":"https://github.com/RemiLelaidier","@type":"Person","name":"RemiLelaidier"},"datePublished":"2023-04-14T13:02:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/226/msgpack-javascript/issues/226"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:aebc84ae-a822-4daa-4d04-8739ade30b9f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8032:11F254:10B3B98:181B3D6:6A633D47 |
| html-safe-nonce | e9a985a32ed7824aa3d10499887967dc7781775e30f86681c9d9602ef64dafc6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDMyOjExRjI1NDoxMEIzQjk4OjE4MUIzRDY6NkE2MzNENDciLCJ2aXNpdG9yX2lkIjoiMzk5Mzk2NjgzMjgxMDkzMzU3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2872b63d77189d4e87e3c12f02772d41eb2dc1ad347cab7077997229d7a2403a |
| hovercard-subject-tag | issue:1668209188 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/msgpack/msgpack-javascript/226/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f246558dc380d3cdacc1757ac199f4afa201fdf1cbe3b14865f5f3b83f3e508d/msgpack/msgpack-javascript/issues/226 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f246558dc380d3cdacc1757ac199f4afa201fdf1cbe3b14865f5f3b83f3e508d/msgpack/msgpack-javascript/issues/226 |
| og:image:alt | Hi, I am currently working on a project where I serialize JSON objects using the php library msgpack-php, but when I try to deserialize these objects using the javascript library msgpack-javascript... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RemiLelaidier |
| hostname | github.com |
| expected-hostname | github.com |
| None | 59e55daad7174ca59d63c6974d58276ccb5477442e550bebb3c035e1bef11c94 |
| turbo-cache-control | no-preview |
| go-import | github.com/msgpack/msgpack-javascript git https://github.com/msgpack/msgpack-javascript.git |
| octolytics-dimension-user_id | 198264 |
| octolytics-dimension-user_login | msgpack |
| octolytics-dimension-repository_id | 2761854 |
| octolytics-dimension-repository_nwo | msgpack/msgpack-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2761854 |
| octolytics-dimension-repository_network_root_nwo | msgpack/msgpack-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 990295d92a4cc7b63fbbd83a046217cd7d77d49c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width