From: Antony Dovgal Date: Mon, 7 Aug 2006 20:22:33 +0000 (+0000) Subject: fix types, add missing parentheses X-Git-Tag: RELEASE_1_0_0RC1~2061 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f1a098cbdcdbe3d049e1be44a43bab8753fec812;p=php fix types, add missing parentheses --- diff --git a/ext/dom/node.c b/ext/dom/node.c index 90f0b067a5..6d16579e27 100644 --- a/ext/dom/node.c +++ b/ext/dom/node.c @@ -1684,11 +1684,11 @@ static void dom_canonicalization(INTERNAL_FUNCTION_PARAMETERS, int mode) xmlDocPtr docp; xmlNodeSetPtr nodeset = NULL; dom_object *intern; - long exclusive=0, with_comments=0, file_len=0; + zend_bool exclusive=0, with_comments=0; xmlChar **inclusive_ns_prefixes = NULL; char *file = NULL; - int ret = -1; - xmlOutputBufferPtr buf; + int ret = -1, file_len = 0; + xmlOutputBufferPtr buf; xmlXPathContextPtr ctxp=NULL; xmlXPathObjectPtr xpathobjp=NULL; zend_uchar file_type = IS_STRING; @@ -1750,7 +1750,7 @@ static void dom_canonicalization(INTERNAL_FUNCTION_PARAMETERS, int mode) int xquery_len; if (zend_hash_find(ht, "query", sizeof("query"), (void**)&tmp) == SUCCESS && - Z_TYPE_PP(tmp) == IS_STRING || Z_TYPE_PP(tmp) == IS_UNICODE) { + (Z_TYPE_PP(tmp) == IS_STRING || Z_TYPE_PP(tmp) == IS_UNICODE)) { zxquery = tmp; /* if (Z_TYPE_PP(tmp) == IS_STRING) {