summaryrefslogtreecommitdiff
path: root/ext/simplexml/simplexml.c
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2003-05-18 21:13:29 +0000
committerSterling Hughes <sterling@php.net>2003-05-18 21:13:29 +0000
commitaec55ef95a9da53bede28d51cee7d86cbd701d8d (patch)
tree1b0e958ce12766e14b293f42e57567e7a69a6297 /ext/simplexml/simplexml.c
parente3f351ddb00f6b774a45037882543637c89247d3 (diff)
downloadphp-git-aec55ef95a9da53bede28d51cee7d86cbd701d8d.tar.gz
properly detect blank nodes
Diffstat (limited to 'ext/simplexml/simplexml.c')
-rw-r--r--ext/simplexml/simplexml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c
index 8d19513129..c1b719814d 100644
--- a/ext/simplexml/simplexml.c
+++ b/ext/simplexml/simplexml.c
@@ -50,7 +50,7 @@ _node_as_zval(php_sxe_object *sxe, xmlNodePtr node, zval *value)
char *contents;
contents = xmlNodeListGetString(sxe->document, node->xmlChildrenNode, 1);
- if (contents) {
+ if (!xmlIsBlankNode(node->xmlChildrenNode) && contents) {
ZVAL_STRING(value, contents, 1);
xmlFree(contents);
} else {