Skip to content

Commit bd67ba6

Browse files
ndosscheiluuu1994
authored andcommitted
dom: Fix compile warning due to misplaced const cast
1 parent f7fb13e commit bd67ba6

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
@@ -1120,7 +1120,7 @@ PHP_METHOD(DOMDocument, __construct)
11201120
}
11211121

11221122
if (encoding_len > 0) {
1123-
docp->encoding = (const xmlChar *) xmlStrdup((xmlChar *) encoding);
1123+
docp->encoding = xmlStrdup((const xmlChar *) encoding);
11241124
}
11251125

11261126
intern = Z_DOMOBJ_P(ZEND_THIS);

0 commit comments

Comments
 (0)