From: Michael Wallner Date: Fri, 25 Feb 2005 10:46:43 +0000 (+0000) Subject: * unused vars X-Git-Tag: RELEASE_0_6_0~10 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=e0dea94e283b3429780057c2f052b1a6b43515ef;p=m6w6%2Fext-http * unused vars --- diff --git a/http_methods.c b/http_methods.c index 5e9e0d3..3701e1a 100644 --- a/http_methods.c +++ b/http_methods.c @@ -277,7 +277,6 @@ PHP_METHOD(HTTPi_Response, getETag) PHP_METHOD(HTTPi_Response, setData) { zval *the_data; - char *etag; getObject(httpi_response_object, obj); if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &the_data)) { @@ -314,7 +313,6 @@ PHP_METHOD(HTTPi_Response, setStream) { zval *the_stream; php_stream *the_real_stream; - char *etag; getObject(httpi_response_object, obj); if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &the_stream)) { @@ -472,7 +470,6 @@ PHP_METHOD(HTTPi_Request, __construct) char *URL = NULL; int URL_len; long meth = -1; - zval *info, *opts, *resp; getObject(httpi_request_object, obj); if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|sl", &URL, &URL_len, &meth)) { @@ -545,12 +542,12 @@ PHP_METHOD(HTTPi_Request, setOptions) } zval_add_ref(opt); add_assoc_zval(old_opts, key, *opt); - + /* reset */ key = NULL; } } - + RETURN_TRUE; } /* }}} */ @@ -733,14 +730,14 @@ PHP_METHOD(HTTPi_Request, addQueryData) } old_qdata = GET_PROP(obj, queryData); - + if (SUCCESS != http_urlencode_hash_ex(HASH_OF(qdata), 1, Z_STRVAL_P(old_qdata), Z_STRLEN_P(old_qdata), &query_data, NULL)) { RETURN_FALSE; } UPD_PROP(obj, string, queryData, query_data); efree(query_data); - + RETURN_TRUE; } /* }}} */ @@ -1046,12 +1043,12 @@ PHP_METHOD(HTTPi_Request, send) CURLFORM_CONTENTSLENGTH, Z_STRLEN_PP(data), CURLFORM_END ); - + /* reset */ key = NULL; } } - + /* file data */ FOREACH_VAL(post_files, data) { zval **file, **type, **name;