Skip to content

fix zero value conversion error #5

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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