summaryrefslogtreecommitdiffstats
path: root/6.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-07-15 15:09:33 +0200
committerRemi Collet <remi@php.net>2025-07-15 15:09:33 +0200
commit32a4ab70a7b63d42987fd31fe8affcb1af3c699a (patch)
treee2a572e6f12041dd85d0097d4e79460c061fff02 /6.patch
parentb8fb66f5236ad7734774337643bf700fde12e36f (diff)
add patch for PHP 8.5.0alpha2 fromHEADmaster
https://github.com/php/pecl-xml-xmldiff/pull/6
Diffstat (limited to '6.patch')
-rw-r--r--6.patch22
1 files changed, 22 insertions, 0 deletions
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 <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