Skip to content

Commit bdc09a0

Browse files
committed
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: dom: Fix compile warning due to misplaced const cast
2 parents 26b9395 + bd67ba6 commit bdc09a0

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
@@ -1125,7 +1125,7 @@ PHP_METHOD(DOMDocument, __construct)
11251125
}
11261126

11271127
if (encoding_len > 0) {
1128-
docp->encoding = (const xmlChar *) xmlStrdup((xmlChar *) encoding);
1128+
docp->encoding = xmlStrdup((const xmlChar *) encoding);
11291129
}
11301130

11311131
intern = Z_DOMOBJ_P(ZEND_THIS);

0 commit comments

Comments
 (0)