From: Christian Stocker Date: Tue, 22 Jan 2002 09:52:56 +0000 (+0000) Subject: Getting rid of some compile warnings (thanks to markus for pointing me in the right... X-Git-Tag: PRE_ISSET_PATCH~124 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=deb652deed1e33f680024486cdd85f2f0b20d4c7;p=php Getting rid of some compile warnings (thanks to markus for pointing me in the right direction :) ) --- diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index 903d479063..e0b849742b 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -2328,8 +2328,8 @@ PHP_FUNCTION(domxml_doc_doctype) Returns DomeDOMImplementation */ PHP_FUNCTION(domxml_doc_implementation) { - zval *id; - xmlDocPtr docp; +/* zval *id; + xmlDocPtr docp;*/ DOMXML_NOT_IMPLEMENTED(); @@ -2678,7 +2678,7 @@ PHP_FUNCTION(domxml_dump_node) xmlNodeDump(buf, docp, elementp,level,format); - mem = xmlBufferContent(buf); + mem = (xmlChar*) xmlBufferContent(buf); if (!mem) { xmlBufferFree(buf); @@ -3519,7 +3519,7 @@ static char **php_domxslt_make_params(zval *idvars, int xpath_params) if (zend_hash_get_current_key(parht, &string_key, &num_key, 1) != HASH_KEY_IS_STRING) { php_error(E_WARNING, "Invalid argument or parameter array to %s", get_active_function_name(TSRMLS_C)); - return; + return NULL; } else { SEPARATE_ZVAL(value); @@ -3559,7 +3559,7 @@ PHP_FUNCTION(domxml_xslt_process) xmlDocPtr xmldocp; xmlDocPtr docp; char **params = NULL; - int ret, parsize; + int ret; DOMXML_GET_THIS(idxsl);