com php-src: fix warnings: ext/dom/documenttype.c ext/dom/nodelist.c

From: Date: Fri, 30 Jan 2015 18:03:59 +0000
Subject: com php-src: fix warnings: ext/dom/documenttype.c ext/dom/nodelist.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84468@lists.php.net to get a copy of this message
Commit: 97b5dabeb165e717697e21a647dd0b22cc61001e Author: Michael Wallner <mike@php.net> Fri, 30 Jan 2015 19:03:59 +0100 Parents: d88edb6d96620354e01f292b6b98eae93fd712eb Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=97b5dabeb165e717697e21a647dd0b22cc61001e Log: fix warnings Changed paths: M ext/dom/documenttype.c M ext/dom/nodelist.c Diff: diff --git a/ext/dom/documenttype.c b/ext/dom/documenttype.c index 8b40d51..c65902e 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 f9ecb17..a5f6c63 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); } } }

« previous php.cvs (#84468) next »