mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4: dom: Fix compile warning due to misplaced const cast
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user