From 2575466862e4247a32d9865ce5fbb2dfb0d32315 Mon Sep 17 00:00:00 2001 From: kjdev Date: Fri, 18 Apr 2025 08:31:39 +0900 Subject: [PATCH 1/2] test: change to fit the minimum system libzstd library version --- tests/008.phpt | 72 ---------------------------------------- tests/009.phpt | 4 --- tests/dictionary_01.phpt | 4 --- tests/streams_5.phpt | 4 --- 4 files changed, 84 deletions(-) delete mode 100644 tests/008.phpt diff --git a/tests/008.phpt b/tests/008.phpt deleted file mode 100644 index a319049..0000000 --- a/tests/008.phpt +++ /dev/null @@ -1,72 +0,0 @@ ---TEST-- -zstd_compress(): compress level ---SKIPIF-- -= 10304) die("skip needs libzstd 1.3.3 or older"); -?> ---FILE-- - -===Done=== ---EXPECTF-- -*** Data size *** -3547 -*** Compression Level *** -1 -- 1%d -- true -2 -- 1%d -- true -3 -- 1%d -- true -4 -- 1%d -- true -5 -- 1%d -- true -6 -- 1%d -- true -7 -- 1%d -- true -8 -- 1%d -- true -9 -- 1%d -- true -10 -- 1%d -- true -11 -- 1%d -- true -12 -- 1%d -- true -13 -- 1%d -- true -14 -- 1%d -- true -15 -- 1%d -- true -16 -- 1%d -- true -17 -- 1%d -- true -18 -- 1%d -- true -19 -- 1%d -- true -20 -- 1%d -- true -21 -- 1%d -- true -22 -- 1%d -- true -*** Invalid Compression Level *** - -Warning: zstd_compress: compression level (100) must be within 1..22 in %s on line %d -100 -- 0 -- -Warning: zstd_uncompress: it was not compressed by zstd in %s on line %d -false - -Warning: zstd_compress: compression level (-1) must be within 1..22 in %s on line %d --1 -- 0 -- -Warning: zstd_uncompress: it was not compressed by zstd in %s on line %d -false -===Done=== diff --git a/tests/009.phpt b/tests/009.phpt index b12233b..293c1df 100644 --- a/tests/009.phpt +++ b/tests/009.phpt @@ -1,9 +1,5 @@ --TEST-- zstd_compress(): compress level ---SKIPIF-- - --FILE-- --FILE-- --FILE-- Date: Fri, 18 Apr 2025 08:35:16 +0900 Subject: [PATCH 2/2] docs: add minimu system libzstd library version to README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ba0b3cb..e0c96b6 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,8 @@ To use the system library % ./configure --with-libzstd ``` +> minimum system libzstd library version to 1.4.0 + Install from [pecl](https://pecl.php.net/package/zstd): ``` bash