Skip to content

Commit

Permalink
Respect constness in casting in dom/entity.c (#14080)
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsdos committed Apr 30, 2024
1 parent d24a04b commit 78ec2bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/dom/entity.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ zend_result dom_entity_public_id_read(dom_object *obj, zval *retval)
if (nodep->etype != XML_EXTERNAL_GENERAL_UNPARSED_ENTITY || !nodep->ExternalID) {
ZVAL_NULL(retval);
} else {
ZVAL_STRING(retval, (char *) (nodep->ExternalID));
ZVAL_STRING(retval, (const char *) nodep->ExternalID);
}

return SUCCESS;
Expand All @@ -64,7 +64,7 @@ zend_result dom_entity_system_id_read(dom_object *obj, zval *retval)
if (nodep->etype != XML_EXTERNAL_GENERAL_UNPARSED_ENTITY) {
ZVAL_NULL(retval);
} else {
ZVAL_STRING(retval, (char *) (nodep->SystemID));
ZVAL_STRING(retval, (const char *) nodep->SystemID);
}

return SUCCESS;
Expand Down

0 comments on commit 78ec2bd

Please sign in to comment.