projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- hopefully some more appropriate fixes for the zval separation issues
[m6w6/ext-http]
/
http_message_object.c
diff --git
a/http_message_object.c
b/http_message_object.c
index fa828229b7afd6b6d3b531855674863b35d7ae55..aa63cab0b47fc8b98c325a6371a313606912954d 100644
(file)
--- a/
http_message_object.c
+++ b/
http_message_object.c
@@
-368,10
+368,7
@@
static void _http_message_object_write_prop(zval *object, zval *member, zval *va
}
#endif
}
#endif
- ALLOC_ZVAL(cpy);
- *cpy = *value;
- zval_copy_ctor(cpy);
- INIT_PZVAL(cpy);
+ cpy = zval_copy(Z_TYPE_P(value), value);
#ifdef WONKY
switch (h)
#ifdef WONKY
switch (h)
@@
-456,7
+453,7
@@
static void _http_message_object_write_prop(zval *object, zval *member, zval *va
#endif
break;
}
#endif
break;
}
- zval_
ptr_dtor
(&cpy);
+ zval_
free
(&cpy);
}
static HashTable *_http_message_object_get_props(zval *object TSRMLS_DC)
}
static HashTable *_http_message_object_get_props(zval *object TSRMLS_DC)