We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7fb13e commit bd67ba6Copy full SHA for bd67ba6
ext/dom/document.c
@@ -1120,7 +1120,7 @@ PHP_METHOD(DOMDocument, __construct)
1120
}
1121
1122
if (encoding_len > 0) {
1123
- docp->encoding = (const xmlChar *) xmlStrdup((xmlChar *) encoding);
+ docp->encoding = xmlStrdup((const xmlChar *) encoding);
1124
1125
1126
intern = Z_DOMOBJ_P(ZEND_THIS);
0 commit comments