Browse Source

add namespace support

migration/unlabaled-1.3.2
Sterling Hughes 23 years ago
parent
commit
3c511d9f24
  1. 9
      ext/simplexml/simplexml.c

9
ext/simplexml/simplexml.c

@ -113,7 +113,14 @@ sxe_property_read(zval *object, zval *member TSRMLS_DC)
node = node->xmlChildrenNode;
while (node) {
if (!xmlStrcmp(node->name, name)) {
if (node->ns && !xmlStrcmp(node->ns->prefix, name)) {
APPEND_PREV_ELEMENT(counter, value);
MAKE_STD_ZVAL(value);
_node_as_zval(sxe, node->parent, value);
APPEND_CUR_ELEMENT(counter, value);
} else if (!xmlStrcmp(node->name, name)) {
APPEND_PREV_ELEMENT(counter, value);
MAKE_STD_ZVAL(value);

Loading…
Cancel
Save