Skip to content

Commit

Permalink
wrong macro usage, we expect a DOM object here
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrejoye committed May 16, 2014
1 parent 797c166 commit 3ebd7ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/dom/xpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3ebd7ec

Please sign in to comment.