Patch http_querystring_object.patch for PECL Bug #60917
Patch version 2012-01-28 13:36 UTC
Return to Bug #60917 |
Download this patch
Patch Revisions:
Developer: yos.asakawa@gmail.com
*** http_querystring_object.c.org Sat Jan 28 22:08:51 2012
--- http_querystring_object.c Sat Jan 28 21:17:37 2012
***************
*** 192,199 ****
--- 192,203 ----
}
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_querystring_object, o);
ov.handlers = &http_querystring_object_handlers;
|