We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60d161a commit cc0c4e4Copy full SHA for cc0c4e4
ext/simplexml/simplexml.c
@@ -97,11 +97,10 @@ static zval *
97
sxe_property_read(zval *object, zval *member TSRMLS_DC)
98
{
99
zval *return_value;
100
- zval *value;
+ zval *value = NULL;
101
php_sxe_object *sxe;
102
char *name;
103
char *contents;
104
- char *mapname = NULL;
105
xmlNodePtr node;
106
xmlAttrPtr attr;
107
int counter = 0;
@@ -122,7 +121,6 @@ sxe_property_read(zval *object, zval *member TSRMLS_DC)
122
121
APPEND_PREV_ELEMENT(counter, value);
123
124
MAKE_STD_ZVAL(value);
125
- value->refcount = 0;
126
contents = xmlNodeListGetString((xmlDocPtr) sxe->document->ptr, attr->children, 1);
127
ZVAL_STRING(value, contents, 0);
128
APPEND_CUR_ELEMENT(counter, value);
0 commit comments