if (node->children && node->children->type == XML_TEXT_NODE && !xmlIsBlankNode(node->children)) {
contents = xmlNodeListGetString(node->doc, node->children, 1);
if (contents) {
- ZVAL_STRING(*value, contents, 0);
+ ZVAL_STRING(*value, contents, 1);
}
} else {
subnode = php_sxe_object_new(TSRMLS_C);
{
if (contents) {
ZVAL_STRINGL(object, contents, strlen(contents), 1);
+ object->refcount = 1;
+ object->is_ref = 0;
}
switch (type) {
xmlFree(contents);
}
if (should_free) {
- zval_dtor(&free_obj);
+ /*zval_dtor(&free_obj);*/
}
return rv;
}