X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_message_object.c;h=027cbdfcd5c7ad221b09911f2ba0ff45746d900b;hp=8cf6969a885bf9003f610353baa1b764df852a60;hb=e6d4ae260275041fcc32f06f3487cdef6613c646;hpb=6deee2e3d2d6282dd76e3725fe2de6c7833bd57f diff --git a/http_message_object.c b/http_message_object.c index 8cf6969..027cbdf 100644 --- a/http_message_object.c +++ b/http_message_object.c @@ -165,7 +165,7 @@ zend_object_value _http_message_object_new_ex(zend_class_entry *ce, http_message ALLOC_HASHTABLE(OBJ_PROP(o)); zend_hash_init(OBJ_PROP(o), 0, NULL, ZVAL_PTR_DTOR, 0); - ov.handle = zend_objects_store_put(o, (zend_objects_store_dtor_t) zend_objects_destroy_object, http_message_object_free, NULL TSRMLS_CC); + ov.handle = putObject(http_message_object, o); ov.handlers = &http_message_object_handlers; return ov; @@ -332,7 +332,7 @@ static void _http_message_object_write_prop(zval *object, zval *member, zval *va { case HTTP_MSG_PROPHASH_TYPE: convert_to_long_ex(&value); - if (Z_LVAL_P(value) != msg->type) { + if ((http_message_type) Z_LVAL_P(value) != msg->type) { if (HTTP_MSG_TYPE(REQUEST, msg)) { if (msg->info.request.method) { efree(msg->info.request.method);