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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user