summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PHPINFO2
-rw-r--r--REFLECTION25
-rw-r--r--composer.json14
-rw-r--r--php-lz4.spec9
4 files changed, 44 insertions, 6 deletions
diff --git a/PHPINFO b/PHPINFO
index 1f30730..8f7a599 100644
--- a/PHPINFO
+++ b/PHPINFO
@@ -2,6 +2,6 @@
lz4
LZ4 support => enabled
-Extension Version => 0.5.0
+Extension Version => 0.6.0
LZ4 Version => 1.10.0
LZ4 APCu serializer ABI => 0
diff --git a/REFLECTION b/REFLECTION
index e8ffbd2..429156d 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,14 +1,20 @@
-Extension [ <persistent> extension #92 lz4 version 0.5.0 ] {
+Extension [ <persistent> extension #96 lz4 version 0.6.0 ] {
- Dependencies {
Dependency [ apcu (Optional) ]
}
- - Constants [4] {
+ - Constants [10] {
Constant [ int LZ4_CLEVEL_MIN ] { 2 }
Constant [ int LZ4_CLEVEL_MAX ] { 12 }
Constant [ int LZ4_VERSION_NUMBER ] { 11000 }
Constant [ string LZ4_VERSION_TEXT ] { 1.10.0 }
+ Constant [ int LZ4_CHECKSUM_FRAME ] { 1 }
+ Constant [ int LZ4_CHECKSUM_BLOCK ] { 2 }
+ Constant [ int LZ4_BLOCK_SIZE_64KB ] { 4 }
+ Constant [ int LZ4_BLOCK_SIZE_256KB ] { 5 }
+ Constant [ int LZ4_BLOCK_SIZE_1MB ] { 6 }
+ Constant [ int LZ4_BLOCK_SIZE_4MB ] { 7 }
}
- Functions {
@@ -28,6 +34,21 @@ Extension [ <persistent> extension #92 lz4 version 0.5.0 ] {
Parameter #2 [ <optional> $offset = <default> ]
}
}
+ Function [ <internal:lz4> function lz4_compress_frame ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> $data ]
+ Parameter #1 [ <optional> $level = <default> ]
+ Parameter #2 [ <optional> $max_block_size = <default> ]
+ Parameter #3 [ <optional> $checksums = <default> ]
+ }
+ }
+ Function [ <internal:lz4> function lz4_uncompress_frame ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $data ]
+ }
+ }
}
}
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..44c2ab4
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,14 @@
+{
+ "name": "kjdev/lz4",
+ "type": "php-ext",
+ "license": "MIT",
+ "description": "A compression/decompression with LZ4",
+ "require": {
+ "php": ">= 5.6.0"
+ },
+ "php-ext": {
+ "extension-name": "lz4",
+ "download-url-method": "pre-packaged-source",
+ "configure-options": []
+ }
+}
diff --git a/php-lz4.spec b/php-lz4.spec
index 45e06f4..13cc5bb 100644
--- a/php-lz4.spec
+++ b/php-lz4.spec
@@ -22,7 +22,7 @@
%bcond_with liblz4
%endif
-%global gh_commit 83c6409ae7a98c91ce7419e9028f49ce6bf94863
+%global gh_commit bf27b2c13922b6fbeb2eac5251be4e8a95d01e36
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner kjdev
%global gh_project php-ext-lz4
@@ -36,8 +36,8 @@
Summary: LZ4 Extension for PHP
Name: %{?scl_prefix}php-lz4
-Version: 0.5.0
-Release: 3%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Version: 0.6.0
+Release: 1%{?dist}
License: MIT
Group: Development/Languages
URL: https://github.com/%{gh_owner}/%{gh_project}
@@ -198,6 +198,9 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Fri Nov 7 2025 Remi Collet <remi@remirepo.net> - 0.6.0-1
+- update to 0.6.0
+
* Thu Sep 25 2025 Remi Collet <remi@remirepo.net> - 0.5.0-3
- rebuild for PHP 8.5.0RC1