blob: 587c241f9198c373e45748cb0ebb1bfa70abc693 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
|