1
0
mirror of https://github.com/php/php-src.git synced 2026-03-30 20:22:36 +02:00

properly detect blank nodes

This commit is contained in:
Sterling Hughes
2003-05-18 21:13:29 +00:00
parent e3f351ddb0
commit aec55ef95a

View File

@@ -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 {