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

Merge branch 'PHP-8.5'

* PHP-8.5:
  dom: Fix compile warning due to misplaced const cast
This commit is contained in:
Niels Dossche
2025-11-06 22:42:54 +01:00

View File

@@ -1282,7 +1282,7 @@ PHP_METHOD(DOMDocument, __construct)
}
if (encoding_len > 0) {
docp->encoding = (const xmlChar *) xmlStrdup(BAD_CAST encoding);
docp->encoding = xmlStrdup((const xmlChar *) encoding);
}
intern = Z_DOMOBJ_P(ZEND_THIS);