1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

dom: Fix compile warning due to misplaced const cast

This commit is contained in:
Niels Dossche
2025-11-06 22:42:03 +01:00
parent d3a4b4b09c
commit 7c96263cee

View File

@@ -1234,7 +1234,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);