com php-src: wrong macro usage, we expect a DOM object here: ext/dom/xpath.c

From: Date: Fri, 16 May 2014 07:15:30 +0000
Subject: com php-src: wrong macro usage, we expect a DOM object here: ext/dom/xpath.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-78406@lists.php.net to get a copy of this message
Commit: 3ebd7ec9cfd8831ab7ffa0c8f422ab9d303e357f Author: Pierre Joye <pierre.php@gmail.com> Fri, 16 May 2014 09:15:30 +0200 Parents: 797c1660cbd1e6ed0092ebbb153c9a2dec3054c8 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3ebd7ec9cfd8831ab7ffa0c8f422ab9d303e357f Log: wrong macro usage, we expect a DOM object here Changed paths: M ext/dom/xpath.c Diff: diff --git a/ext/dom/xpath.c b/ext/dom/xpath.c index 8a7bf60..93a3861 100644 --- a/ext/dom/xpath.c +++ b/ext/dom/xpath.c @@ -212,7 +212,7 @@ static void dom_xpath_ext_function_php(xmlXPathParserContextPtr ctxt, int nargs, } GC_REFCOUNT(&retval)++; zend_hash_next_index_insert(intern->node_list, &retval); - obj = Z_XPATHOBJ_P(&retval); + obj = Z_DOMOBJ_P(&retval); nodep = dom_object_get_node(obj); valuePush(ctxt, xmlXPathNewNodeSet(nodep)); } else if (Z_TYPE(retval) == IS_FALSE || Z_TYPE(retval) == IS_TRUE) {

« previous php.cvs (#78406) next »