diff options
author | Remi Collet <remi@remirepo.net> | 2025-07-15 15:09:33 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2025-07-15 15:09:33 +0200 |
commit | 32a4ab70a7b63d42987fd31fe8affcb1af3c699a (patch) | |
tree | e2a572e6f12041dd85d0097d4e79460c061fff02 /6.patch | |
parent | b8fb66f5236ad7734774337643bf700fde12e36f (diff) |
https://github.com/php/pecl-xml-xmldiff/pull/6
Diffstat (limited to '6.patch')
-rw-r--r-- | 6.patch | 22 |
1 files changed, 22 insertions, 0 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 |