X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_request_object.c;h=bc7a0f854e1107fd361fd67fd7f501ca8bd14aa3;hb=687515f3fa8863f97fd281152a80171ad438532d;hp=047e2a34c13cda697627693b43636e017bd37bbc;hpb=669d2e6a8bdc642b6b52693f4593f199ddd7e8d2;p=m6w6%2Fext-http diff --git a/http_request_object.c b/http_request_object.c index 047e2a3..bc7a0f8 100644 --- a/http_request_object.c +++ b/http_request_object.c @@ -409,7 +409,7 @@ zend_object_value _http_request_object_new_ex(zend_class_entry *ce, CURL *ch, ht } ALLOC_HASHTABLE(OBJ_PROP(o)); - zend_hash_init(OBJ_PROP(o), 0, NULL, ZVAL_PTR_DTOR, 0); + 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);