Patch http_request_object.patch for PECL Bug #60917
Patch version 2012-01-28 13:37 UTC
Return to Bug #60917 |
Download this patch
Patch Revisions:
Developer: yos.asakawa@gmail.com
*** http_request_object.c.org Sat Jan 28 22:08:51 2012
--- http_request_object.c Sat Jan 28 21:18:57 2012
***************
*** 493,501 ****
}
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_request_object, o);
ov.handlers = &http_request_object_handlers;
--- 493,504 ----
}
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_request_object, o);
ov.handlers = &http_request_object_handlers;
|