Commit bd67ba66a89 for php.net

commit bd67ba66a892ea63cd70c9a7fec72c7094183037
Author: Niels Dossche <7771979+ndossche@users.noreply.github.com>
Date:   Thu Nov 6 22:42:03 2025 +0100

    dom: Fix compile warning due to misplaced const cast

diff --git a/ext/dom/document.c b/ext/dom/document.c
index 15b5d98131c..5f06f8dc2a8 100644
--- a/ext/dom/document.c
+++ b/ext/dom/document.c
@@ -1120,7 +1120,7 @@ PHP_METHOD(DOMDocument, __construct)
 	}

 	if (encoding_len > 0) {
-		docp->encoding = (const xmlChar *) xmlStrdup((xmlChar *) encoding);
+		docp->encoding = xmlStrdup((const xmlChar *) encoding);
 	}

 	intern = Z_DOMOBJ_P(ZEND_THIS);