From: Antony Dovgal Date: Fri, 8 Aug 2008 10:06:39 +0000 (+0000) Subject: ifdef unused variables X-Git-Tag: RELEASE_1_6_2~12 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=a88a9ab5ca6e1aa2d2510c7ff3dda58d528602e5;p=m6w6%2Fext-http ifdef unused variables --- diff --git a/http_requestpool_object.c b/http_requestpool_object.c index 5edc073..48783c8 100644 --- a/http_requestpool_object.c +++ b/http_requestpool_object.c @@ -407,7 +407,9 @@ PHP_METHOD(HttpRequestPool, getFinishedRequests) PHP_METHOD(HttpRequestPool, enablePipelining) { zend_bool enable = 1; +#if defined(HAVE_CURL_MULTI_SETOPT) && HTTP_CURL_VERSION(7,16,0) getObject(http_requestpool_object, obj); +#endif if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|b", &enable)) { RETURN_FALSE; @@ -426,7 +428,9 @@ PHP_METHOD(HttpRequestPool, enablePipelining) PHP_METHOD(HttpRequestPool, enableEvents) { zend_bool enable = 1; +#if defined(HTTP_HAVE_EVENT) getObject(http_requestpool_object, obj); +#endif if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|b", &enable)) { #if defined(HTTP_HAVE_EVENT)