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

zstd_uncompress error! #13

Open
patrickkh7788 opened this issue Sep 26, 2018 · 3 comments
Open

zstd_uncompress error! #13

patrickkh7788 opened this issue Sep 26, 2018 · 3 comments

Comments

@patrickkh7788
Copy link

patrickkh7788 commented Sep 26, 2018

try use zstd_uncompress with binary file, return false without error message.

the 1.zstd binary is generate from nodejs with https://github.com/Stieneee/node-zstd.git. can be decode with nodejs.

node-zstd encode data can be decode by php-ext-zstd.

@patrickkh7788
Copy link
Author

test this file with zstd binary command, also work.

@kjdev
Copy link
Owner

kjdev commented Sep 28, 2018

php-ext-zstd does not suport streaming.
Those compressed with Streaming need to decompress with Streaming.

node-zstd is compressed with Streaming.

if (dict != NULL && dictSize > 0) {
  ZSTD_initCStream_usingDict(zcs, dict, dictSize, level);
} else {
  ZSTD_initCStream(zcs, level);
}

TODO: Streaming support of php-ext-zstd

@kjdev
Copy link
Owner

kjdev commented Jan 6, 2019

6231a47
Updated so that things compressed by streaming can be decompressed.

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

No branches or pull requests

2 participants