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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user