- a stream wrapper that defeats the idea of streams is not really useful, so remove...
[m6w6/ext-http] / http_request_object.c
index 8d6e798ebefc95e2a4ac2089c380df375a3142a4..8280f976317eb86f02a86bdbf648793c145a0dd6 100644 (file)
@@ -348,7 +348,7 @@ static inline void _http_request_object_declare_default_properties(TSRMLS_D)
        DCL_PROP_N(PROTECTED, options);
        DCL_PROP_N(PROTECTED, responseInfo);
        DCL_PROP_N(PROTECTED, responseData);
-       DCL_PROP_N(PROTECTED, responseCode);
+       DCL_PROP(PROTECTED, long, responseCode, 0);
        DCL_PROP_N(PROTECTED, responseMessage);
        DCL_PROP_N(PROTECTED, postFields);
        DCL_PROP_N(PROTECTED, postFiles);
@@ -601,7 +601,7 @@ STATUS _http_request_object_responsehandler(http_request_object *obj, zval *this
 
                UPD_PROP(obj, long, responseCode, msg->http.info.response.code);
 
-               MAKE_STD_ZVAL(headers)
+               MAKE_STD_ZVAL(headers);
                array_init(headers);
 
                zend_hash_copy(Z_ARRVAL_P(headers), &msg->hdrs, (copy_ctor_func_t) zval_add_ref, NULL, sizeof(zval *));