]> granicus.if.org Git - php/commitdiff
fix warnings
authorMichael Wallner <mike@php.net>
Fri, 30 Jan 2015 18:03:59 +0000 (19:03 +0100)
committerMichael Wallner <mike@php.net>
Fri, 30 Jan 2015 18:03:59 +0000 (19:03 +0100)
ext/dom/documenttype.c
ext/dom/nodelist.c

index 8b40d510650be0a5f199d674f507e637a681ecb9..c65902e759da02bea0202a97d0e7e5ae283c682d 100644 (file)
@@ -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
index f9ecb17ca47785ad8d00de5d0c7be7eb6649463d..a5f6c63f7d8cb4c233ddbfa96157fed6a47b51b2 100644 (file)
@@ -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);
                                                }
                                        }
                                }