Patch http_requestdatashare_object.patch for PECL Bug #60917
Patch version 2012-01-28 13:38 UTC
Return to Bug #60917 |
Download this patch
Patch Revisions:
Developer: yos.asakawa@gmail.com
*** http_requestdatashare_object.c.org Sat Jan 28 22:08:51 2012
--- http_requestdatashare_object.c Sat Jan 28 21:19:38 2012
***************
*** 126,133 ****
--- 126,137 ----
}
ALLOC_HASHTABLE(OBJ_PROP(o));
+ #if PHP_VERSION_ID < 50399
zend_hash_init(OBJ_PROP(o), zend_hash_num_elements(&ce->default_properties), NULL, ZVAL_PTR_DTOR, 0);
zend_hash_copy(OBJ_PROP(o), &ce->default_properties, (copy_ctor_func_t) zval_add_ref, NULL, sizeof(zval *));
+ #else
+ object_properties_init(OBJ_PROP(o), ce);
+ #endif
ov.handle = putObject(http_requestdatashare_object, o);
ov.handlers = &http_requestdatashare_object_handlers;
|