SKIP_TEXT(node);
if (node->ns) {
+ if (node->parent->ns) {
+ if (!xmlStrcmp(node->ns->href, node->parent->ns->href)) {
+ goto next_iter;
+ }
+ }
+
if (match_ns(sxe, node, name)) {
MAKE_STD_ZVAL(value);
_node_as_zval(sxe, node->parent, value);
APPEND_CUR_ELEMENT(counter, value);
-
goto next_iter;
}
}
-
+
if (!xmlStrcmp(node->name, name)) {
APPEND_PREV_ELEMENT(counter, value);
ulong h;
int namelen;
- ALLOC_HASHTABLE_REL(rv);
+ ALLOC_HASHTABLE(rv);
zend_hash_init(rv, 0, NULL, ZVAL_PTR_DTOR, 0);
sxe = php_sxe_fetch_object(object TSRMLS_CC);
sxe = (php_sxe_object *) object;
+ FREE_HASHTABLE(sxe->zo.properties);
+
if (--sxe->document->refcount <= 0) {
xmlFreeDoc(sxe->document->ptr);
}
RETURN_FALSE;
}
sxe->nsmap = xmlHashCreate(10);
-
+
return_value->type = IS_OBJECT;
return_value->value.obj = php_sxe_register_object(sxe TSRMLS_CC);
}