Skip to content

Commit 8ea8da2

Browse files
committed
Merge branch 'PHP-8.5'
* PHP-8.5: dom: Fix compile warning due to misplaced const cast
2 parents 31ac5e4 + a0840e1 commit 8ea8da2

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
@@ -1282,7 +1282,7 @@ PHP_METHOD(DOMDocument, __construct)
12821282
}
12831283

12841284
if (encoding_len > 0) {
1285-
docp->encoding = (const xmlChar *) xmlStrdup(BAD_CAST encoding);
1285+
docp->encoding = xmlStrdup((const xmlChar *) encoding);
12861286
}
12871287

12881288
intern = Z_DOMOBJ_P(ZEND_THIS);

0 commit comments

Comments
 (0)