diff options
-rw-r--r-- | 6.patch | 22 | ||||
-rw-r--r-- | php-pecl-xmldiff.spec | 15 |
2 files changed, 31 insertions, 6 deletions
@@ -0,0 +1,22 @@ +From e3212dc9d47f834647e6c1726e50fce5c1aa1c7c Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Tue, 15 Jul 2025 15:05:20 +0200 +Subject: [PATCH] use zend_ce_exception + +--- + xmldiff.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/xmldiff.cpp b/xmldiff.cpp +index 47e6210..290d733 100644 +--- a/xmldiff.cpp ++++ b/xmldiff.cpp +@@ -280,7 +280,7 @@ PHP_MINIT_FUNCTION(xmldiff) + + INIT_CLASS_ENTRY(ce, "XMLDiff\\Exception", NULL); + #if PHP_MAJOR_VERSION >= 7 +- XMLDiffException_ce = zend_register_internal_class_ex(&ce, zend_exception_get_default()); ++ XMLDiffException_ce = zend_register_internal_class_ex(&ce, zend_ce_exception); + #else + XMLDiffException_ce = zend_register_internal_class_ex( + &ce, NULL, "exception" TSRMLS_CC diff --git a/php-pecl-xmldiff.spec b/php-pecl-xmldiff.spec index abde7bf..7943fd4 100644 --- a/php-pecl-xmldiff.spec +++ b/php-pecl-xmldiff.spec @@ -10,24 +10,21 @@ %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} %global pecl_name xmldiff -%if "%{php_version}" < "5.6" -# After dom -%global ini_name %{pecl_name}.ini -%else # After 20-dom %global ini_name 40-%{pecl_name}.ini -%endif %global sources %{pecl_name}-%{version} %global _configure ../%{sources}/configure Summary: XML diff and merge Name: %{?scl_prefix}php-pecl-%{pecl_name} Version: 1.1.5 -Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: BSD-2-Clause URL: https://pecl.php.net/package/%{pecl_name} Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz +Patch0: 6.patch + BuildRequires: %{?dtsprefix}gcc BuildRequires: make BuildRequires: %{?scl_prefix}php-devel @@ -76,6 +73,8 @@ sed -e '/name="diffmark/d' \ -i package.xml cd %{sources} +%patch -P0 -p1 + # drop bundled library to ensure it is not used rm -rf diffmark @@ -205,6 +204,10 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Tue Jul 15 2025 Remi Collet <remi@remirepo.net> - 1.1.5-2 +- add patch for PHP 8.5.0alpha2 from + https://github.com/php/pecl-xml-xmldiff/pull/6 + * Sun Feb 23 2025 Remi Collet <remi@remirepo.net> - 1.1.5-1 - update to 1.1.5 - re-license spec file to CECILL-2.1 |