Skip to content

Conversation

@yuxaoxao
Copy link

@yuxaoxao yuxaoxao commented Jul 13, 2025

Problem Description

When the JSON input is ["0"], the compressed result becomes [["0","a|0"],"1"]. PHP fails to decompress it correctly, returning [{}] instead of the original data.

This issue is not caught when using assertEquals in unit tests, because the type difference goes unnoticed. However, switching to assertSame reveals the problem.

Fix

This pull request addresses and fixes the decompression issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant