From d4e3031148d880ed883aa546544b17574fe1ac9e Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 24 May 2022 15:46:01 +0200 Subject: update to 2.1.1 --- PHPINFO | 2 +- REFLECTION | 38 +++++++++++++++++++++++++++++++++++--- php-pecl-xdiff.spec | 21 +++++---------------- 3 files changed, 41 insertions(+), 20 deletions(-) diff --git a/PHPINFO b/PHPINFO index 82b78bd..f97f45c 100644 --- a/PHPINFO +++ b/PHPINFO @@ -2,5 +2,5 @@ xdiff xdiff support => enabled -extension version => 2.1.0 +extension version => 2.1.1 libxdiff version => LibXDiff v0.23 by Davide Libenzi diff --git a/REFLECTION b/REFLECTION index 1f5c217..38e8e13 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #120 xdiff version 2.1.0 ] { +Extension [ extension #120 xdiff version 2.1.1 ] { - Constants [3] { Constant [ int XDIFF_PATCH_NORMAL ] { 45 } @@ -27,6 +27,13 @@ Extension [ extension #120 xdiff version 2.1.0 ] { } - Return [ bool ] } + Function [ function xdiff_string_bdiff ] { + + - Parameters [2] { + Parameter #0 [ string $str1 ] + Parameter #1 [ string $str2 ] + } + } Function [ function xdiff_string_diff_binary ] { - Parameters [2] { @@ -34,6 +41,15 @@ Extension [ extension #120 xdiff version 2.1.0 ] { Parameter #1 [ string $str2 ] } } + Function [ function xdiff_file_bdiff ] { + + - Parameters [3] { + Parameter #0 [ string $file1 ] + Parameter #1 [ string $file2 ] + Parameter #2 [ string $dest ] + } + - Return [ bool ] + } Function [ function xdiff_file_diff_binary ] { - Parameters [3] { @@ -92,9 +108,18 @@ Extension [ extension #120 xdiff version 2.1.0 ] { Parameter #0 [ string $file ] Parameter #1 [ string $patch ] Parameter #2 [ int $flags = XDIFF_PATCH_NORMAL ] - Parameter #3 [ string &$error = null ] + Parameter #3 [ ?string &$error = null ] } } + Function [ function xdiff_file_bpatch ] { + + - Parameters [3] { + Parameter #0 [ string $file ] + Parameter #1 [ string $patch ] + Parameter #2 [ string $dest ] + } + - Return [ bool ] + } Function [ function xdiff_file_patch_binary ] { - Parameters [3] { @@ -104,6 +129,13 @@ Extension [ extension #120 xdiff version 2.1.0 ] { } - Return [ bool ] } + Function [ function xdiff_string_bpatch ] { + + - Parameters [2] { + Parameter #0 [ string $str ] + Parameter #1 [ string $patch ] + } + } Function [ function xdiff_string_patch_binary ] { - Parameters [2] { @@ -126,7 +158,7 @@ Extension [ extension #120 xdiff version 2.1.0 ] { Parameter #0 [ string $str1 ] Parameter #1 [ string $str2 ] Parameter #2 [ string $str3 ] - Parameter #3 [ string &$error = null ] + Parameter #3 [ ?string &$error = null ] } } } diff --git a/php-pecl-xdiff.spec b/php-pecl-xdiff.spec index 253a881..55d44c2 100644 --- a/php-pecl-xdiff.spec +++ b/php-pecl-xdiff.spec @@ -1,6 +1,6 @@ # remirepo spec file for php-pecl-xdiff # -# Copyright (c) 2016-2021 Remi Collet +# Copyright (c) 2016-2022 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -20,7 +20,7 @@ %global libxdiff_version 0.23 Name: %{?scl_prefix}php-pecl-%{pecl_name} -Version: 2.1.0 +Version: 2.1.1 Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} Summary: File differences/patches # libxdiff is LGPLv2+, xdiff extension is PHP @@ -46,20 +46,6 @@ Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version} Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version} Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} -%if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} -# Other third party repo stuff -%if "%{php_version}" > "7.3" -Obsoletes: php73-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "7.4" -Obsoletes: php74-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "8.0" -Obsoletes: php80-pecl-%{pecl_name} <= %{version} -%endif -%endif - - %description This extension creates and applies patches to both text and binary files. @@ -211,6 +197,9 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Tue May 24 2022 Remi Collet - 2.1.1-1 +- update to 2.1.1 + * Tue May 18 2021 Remi Collet - 2.1.0-1 - update to 2.1.0 -- cgit