From: Michael Wallner Date: Fri, 30 Jan 2015 18:03:59 +0000 (+0100) Subject: fix warnings X-Git-Tag: PRE_PHP7_REMOVALS~21^2~53 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97b5dabeb165e717697e21a647dd0b22cc61001e;p=php fix warnings --- diff --git a/ext/dom/documenttype.c b/ext/dom/documenttype.c index 8b40d51065..c65902e759 100644 --- a/ext/dom/documenttype.c +++ b/ext/dom/documenttype.c @@ -191,7 +191,7 @@ int dom_documenttype_internal_subset_read(dom_object *obj, zval *retval) xmlOutputBufferFlush(buff); #ifdef LIBXML2_NEW_BUFFER - smart_str_appendl(&ret_buf, xmlOutputBufferGetContent(buff), xmlOutputBufferGetSize(buff)); + smart_str_appendl(&ret_buf, (const char *) xmlOutputBufferGetContent(buff), xmlOutputBufferGetSize(buff)); #else smart_str_appendl(&ret_buf, buff->buffer->content, buff->buffer->use); #endif diff --git a/ext/dom/nodelist.c b/ext/dom/nodelist.c index f9ecb17ca4..a5f6c63f7d 100644 --- a/ext/dom/nodelist.c +++ b/ext/dom/nodelist.c @@ -153,7 +153,7 @@ PHP_FUNCTION(dom_nodelist_item) } else { nodep = nodep->children; } - itemnode = dom_get_elements_by_tag_name_ns_raw(nodep, objmap->ns, objmap->local, &count, index); + itemnode = dom_get_elements_by_tag_name_ns_raw(nodep, (char *) objmap->ns, (char *) objmap->local, &count, index); } } }