#include "php_ini.h"
#include "ext/standard/info.h"
#include "php_simplexml.h"
+#include "zend_execute_locks.h"
zend_class_entry *sxe_class_entry;
xmlAttrPtr attr;
int counter = 0;
- ALLOC_ZVAL(return_value);
- return_value->refcount = 0;
+ MAKE_STD_ZVAL(return_value);
ZVAL_NULL(return_value);
name = Z_STRVAL_P(member);
if (match_ns(sxe, node, name)) {
MAKE_STD_ZVAL(value);
_node_as_zval(sxe, node->parent, value TSRMLS_CC);
- value->refcount = 0;
APPEND_CUR_ELEMENT(counter, value);
goto next_iter;
}
APPEND_PREV_ELEMENT(counter, value);
MAKE_STD_ZVAL(value);
_node_as_zval(sxe, node, value TSRMLS_CC);
- value->refcount = 0;
-
APPEND_CUR_ELEMENT(counter, value);
}
return_value = value;
}
+ /* create temporary variable */
+ PZVAL_UNLOCK(return_value);
+
return return_value;
}
/* }}} */
php_sxe_object *sxe;
char *name;
xmlNodePtr node;
- xmlNodePtr newnode;
+ xmlNodePtr newnode = NULL;
xmlAttrPtr attr;
int counter = 0;
int is_attr = 0;