Skip to content

Commit 7c96263

Browse files
committed
dom: Fix compile warning due to misplaced const cast
1 parent d3a4b4b commit 7c96263

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/dom/document.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ PHP_METHOD(DOMDocument, __construct)
12341234
}
12351235

12361236
if (encoding_len > 0) {
1237-
docp->encoding = (const xmlChar *) xmlStrdup((xmlChar *) encoding);
1237+
docp->encoding = xmlStrdup((const xmlChar *) encoding);
12381238
}
12391239

12401240
intern = Z_DOMOBJ_P(ZEND_THIS);

0 commit comments

Comments
 (0)