From 32a4ab70a7b63d42987fd31fe8affcb1af3c699a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 15 Jul 2025 15:09:33 +0200 Subject: add patch for PHP 8.5.0alpha2 from https://github.com/php/pecl-xml-xmldiff/pull/6 --- 6.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 6.patch (limited to '6.patch') diff --git a/6.patch b/6.patch new file mode 100644 index 0000000..587c241 --- /dev/null +++ b/6.patch @@ -0,0 +1,22 @@ +From e3212dc9d47f834647e6c1726e50fce5c1aa1c7c Mon Sep 17 00:00:00 2001 +From: Remi Collet +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 -- cgit