Skip to content

Commit 37a6620

Browse files
committed
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3: dom: Fix compile warning due to misplaced const cast
2 parents ca084ac + 7c96263 commit 37a6620

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

12831283
if (encoding_len > 0) {
1284-
docp->encoding = (const xmlChar *) xmlStrdup(BAD_CAST encoding);
1284+
docp->encoding = xmlStrdup((const xmlChar *) encoding);
12851285
}
12861286

12871287
intern = Z_DOMOBJ_P(ZEND_THIS);

0 commit comments

Comments
 (0)