Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package php-lzf for openSUSE:Factory checked in at 2026-12-01 16:59:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/php-lzf (Old) and /work/SRC/openSUSE:Factory/.php-lzf.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "php-lzf" Tue Dec 1 16:59:13 2026 rev:4 rq:1401764 version:1.7.0 Changes: -------- --- /work/SRC/openSUSE:Factory/php-lzf/php-lzf.changes 2022-12-10 21:18:49.785907816 +0100 +++ /work/SRC/openSUSE:Factory/.php-lzf.new.1340718/php-lzf.changes 2026-12-01 17:02:32.037053711 +0100 @@ -1,0 +2,6 @@ +Mon Nov 30 19:34:44 UTC 2026 - Arjen de Korte <[email protected]> + +- Fix build with PHP 8.6 + + lzf-fix-build-PHP-8.6.patch + +------------------------------------------------------------------- New: ---- lzf-fix-build-PHP-8.6.patch ----------(New B)---------- New:- Fix build with PHP 8.6 + lzf-fix-build-PHP-8.6.patch ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ php-lzf.spec ++++++ --- /var/tmp/diff_new_pack.yfP0Yx/_old 2026-12-01 17:02:32.744084579 +0100 +++ /var/tmp/diff_new_pack.yfP0Yx/_new 2026-12-01 17:02:32.747084710 +0100 @@ -39,6 +39,8 @@ Group: Productivity/Networking/Web/Servers URL: https://pecl.php.net/package/%{pkg_name} Source: https://pecl.php.net/get/%{pkg_name}-%{version}.tgz +# PATCH-FIX-UPSTREAM - fix for extended php_stream_filter_ops with seek method in PHP 8.6 +Patch1: lzf-fix-build-PHP-8.6.patch BuildRequires: %{php_name}-devel Provides: php-%{pkg_sname} = %{version} Requires: php(api) = %{php_core_api} @@ -48,7 +50,7 @@ This package handles LZF de/compression. %prep -%setup -q -n %{pkg_name}-%{version} +%autosetup -p1 -n %{pkg_name}-%{version} %build export CFLAGS="%{optflags} -fvisibility=hidden" ++++++ lzf-fix-build-PHP-8.6.patch ++++++ >From f965c93e51d261b2b48f5a8bcf5c76f2d847c202 Mon Sep 17 00:00:00 2001 From: Remi Collet <[email protected]> Date: Fri, 17 Jul 2026 10:28:31 +0200 Subject: [PATCH] fix for extended php_stream_filter_ops with seek method in PHP 8.6 --- filter.c | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+) diff --git a/filter.c b/filter.c index f3e9117..4d11963 100644 --- a/filter.c +++ b/filter.c @@ -235,17 +235,27 @@ static void lzf_filter_state_dtor(php_stream_filter *thisfilter) static php_stream_filter_ops lzf_compress_ops = { lzf_compress_filter, +#if PHP_VERSION_ID >= 80600 + NULL, +#endif lzf_filter_state_dtor, "lzf.compress" }; static php_stream_filter_ops lzf_decompress_ops = { lzf_decompress_filter, +#if PHP_VERSION_ID >= 80600 + NULL, +#endif lzf_filter_state_dtor, "lzf.decompress" }; +#if PHP_VERSION_ID >= 80600 +static php_stream_filter *lzf_compress_filter_create(const char *filtername, zval *filterparams, bool persistent) +#else static php_stream_filter *lzf_compress_filter_create(const char *filtername, zval *filterparams, uint8_t persistent) +#endif { php_lzf_filter_state *inst; @@ -258,10 +268,18 @@ static php_stream_filter *lzf_compress_filter_create(const char *filtername, zva return NULL; } +#if PHP_VERSION_ID >= 80600 + return php_stream_filter_alloc(&lzf_compress_ops, inst, persistent, PSFS_SEEKABLE_NEVER, PSFS_SEEKABLE_NEVER); +#else return php_stream_filter_alloc(&lzf_compress_ops, inst, persistent); +#endif } +#if PHP_VERSION_ID >= 80600 +static php_stream_filter *lzf_decompress_filter_create(const char *filtername, zval *filterparams, bool persistent) +#else static php_stream_filter *lzf_decompress_filter_create(const char *filtername, zval *filterparams, uint8_t persistent) +#endif { php_lzf_filter_state *inst; @@ -274,7 +292,11 @@ static php_stream_filter *lzf_decompress_filter_create(const char *filtername, z return NULL; } +#if PHP_VERSION_ID >= 80600 + return php_stream_filter_alloc(&lzf_decompress_ops, inst, persistent, PSFS_SEEKABLE_NEVER, PSFS_SEEKABLE_NEVER); +#else return php_stream_filter_alloc(&lzf_decompress_ops, inst, persistent); +#endif } php_stream_filter_factory php_lzf_compress_filter_factory = {
