From: Rob Richards Date: Mon, 20 Oct 2008 19:28:36 +0000 (+0000) Subject: fix bug #46323 (compilation of simplexml for NetWare breaks) X-Git-Tag: BEFORE_HEAD_NS_CHANGE~192 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a86b196463caa454034b4c837a6bc302638fdb69;p=php fix bug #46323 (compilation of simplexml for NetWare breaks) --- diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index 60ba959c84..cd610f4476 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -1291,7 +1291,7 @@ SXE_METHOD(xpath) if (nodeptr->type == XML_TEXT_NODE) { _node_as_zval(sxe, nodeptr->parent, value, SXE_ITER_NONE, NULL, NULL, 0 TSRMLS_CC); } else if (nodeptr->type == XML_ATTRIBUTE_NODE) { - _node_as_zval(sxe, nodeptr->parent, value, SXE_ITER_ATTRLIST, (char*)nodeptr->name, nodeptr->ns ? nodeptr->ns->href : NULL, 0 TSRMLS_CC); + _node_as_zval(sxe, nodeptr->parent, value, SXE_ITER_ATTRLIST, (char*)nodeptr->name, nodeptr->ns ? (xmlChar *)nodeptr->ns->href : NULL, 0 TSRMLS_CC); } else { _node_as_zval(sxe, nodeptr, value, SXE_ITER_NONE, NULL, NULL, 0 TSRMLS_CC); }