Patch http_deflatestream_object.patch for PECL Bug #60917
Patch version 2012-01-28 13:34 UTC
Return to Bug #60917 |
Download this patch
Patch Revisions:
Developer: yos.asakawa@gmail.com
*** http_deflatestream_object.c.org Sat Jan 28 22:08:51 2012
--- http_deflatestream_object.c Sat Jan 28 21:15:06 2012
***************
*** 108,116 ****
}
ALLOC_HASHTABLE(OBJ_PROP(o));
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 *));
!
ov.handle = putObject(http_deflatestream_object, o);
ov.handlers = &http_deflatestream_object_handlers;
--- 108,119 ----
}
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_deflatestream_object, o);
ov.handlers = &http_deflatestream_object_handlers;
|