summaryrefslogtreecommitdiff
path: root/ext/domxml/php_domxml.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/domxml/php_domxml.c')
-rw-r--r--ext/domxml/php_domxml.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c
index ada6127a9d..f6666c0e57 100644
--- a/ext/domxml/php_domxml.c
+++ b/ext/domxml/php_domxml.c
@@ -1414,7 +1414,7 @@ static void domxml_error_ext(void *ctx, const char *msg, ...)
add_assoc_string(errormessages,"errormessage",buf,1);
input = ctxt->input;
if (ctxt->name) {
- add_assoc_string(errormessages,"nodename",ctxt->name,1);
+ add_assoc_string(errormessages,"nodename",(char *) ctxt->name,1);
}
if (input != NULL) {
add_assoc_long(errormessages,"line",input->line);
@@ -1450,7 +1450,7 @@ static void domxml_error_validate(void *ctx, const char *msg, ...)
}
if (ctxt->parser != NULL) {
if (ctxt->parser->name) {
- add_assoc_string(errormessages,"nodename",ctxt->parser->name,1);
+ add_assoc_string(errormessages,"nodename",(char *)ctxt->parser->name,1);
}
if (ctxt->parser->input != NULL) {