if (counter == 1) {
SEPARATE_ZVAL(&value);
zval_dtor(return_value);
- FREE_ZVAL(return_value);
+ FREE_ZVAL(return_value);
return_value = value;
}
/* {{{ cast_object()
*/
-static inline void
+static void
cast_object(zval *object, int type, char *contents TSRMLS_DC)
{
if (contents) {
switch (type) {
case IS_STRING:
- return;
+ convert_to_string(object);
+ break;
case IS_BOOL:
convert_to_boolean(object);
break;
}
if (sxe->node) {
- contents = xmlNodeListGetString((xmlDocPtr) sxe->document->ptr, sxe->node->children, 1);
- if (!xmlIsBlankNode(sxe->node->children) && contents) {
- cast_object(writeobj, type, NULL TSRMLS_CC);
+ if (sxe->node->children) {
+ contents = xmlNodeListGetString((xmlDocPtr) sxe->document->ptr, sxe->node->children, 1);
}
}