summaryrefslogtreecommitdiff
path: root/ext/soap/php_xml.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/soap/php_xml.h')
-rw-r--r--ext/soap/php_xml.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/ext/soap/php_xml.h b/ext/soap/php_xml.h
index eb34d2db11..9616e163ae 100644
--- a/ext/soap/php_xml.h
+++ b/ext/soap/php_xml.h
@@ -48,26 +48,28 @@ void *php_stream_xmlIO_open_wrapper(const char *filename);
int php_stream_xmlIO_read(void *context, char *buffer, int len);
int php_stream_xmlIO_close(void *context);
-#define FOREACHATTRNODE(n,c,i) \
+#define FOREACHATTRNODE(n,c,i) FOREACHATTRNODEEX(n,c,NULL,i)
+#define FOREACHATTRNODEEX(n,c,ns,i) \
do { \
if (n == NULL) { \
break; \
} \
if (c) { \
- i = get_attribute(n,c); \
+ i = get_attribute_ex(n,c,ns); \
} else { \
i = n; \
} \
if (i != NULL) { \
n = i;
-#define FOREACHNODE(n,c,i) \
+#define FOREACHNODE(n,c,i) FOREACHNODEEX(n,c,NULL,i)
+#define FOREACHNODEEX(n,c,ns,i) \
do { \
if (n == NULL) { \
break; \
} \
if (c) { \
- i = get_node(n,c); \
+ i = get_node_ex(n,c,NULL); \
} else { \
i = n; \
} \