Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only skip hash keys sorting for actually tied hashes #42

Closed
wants to merge 1 commit into from

Conversation

dur-randir
Copy link
Contributor

As of version 2.25, JSON::XS announced that it won't sort tied hashes under the 'canonical' option. But it's implementation covered too broad range of magic - SvRMAGICAL is set for any magic other then mg_get/mg_set upon cast.

It was discovered in the garu/Data-Printer#75 issue that the core module Hash::Util::FieldHash can easily produce hashes that won't be sorted by JSON::XS::encode_json despite being not tie'd.

@rurban rurban self-assigned this Nov 25, 2015
@rurban rurban added the bug label Nov 25, 2015
@rurban rurban added this to the Next Release milestone Nov 25, 2015
@rurban
Copy link
Owner

rurban commented Nov 25, 2015

Testing in branch pr42-SvRMAGICAL
https://travis-ci.org/rurban/Cpanel-JSON-XS/builds/93226042

@rurban
Copy link
Owner

rurban commented Nov 26, 2015

Rebased into release 3.0201

@rurban rurban closed this Nov 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants