ifdef unused variables
authorAntony Dovgal <tony2001@php.net>
Fri, 8 Aug 2008 10:06:39 +0000 (10:06 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 8 Aug 2008 10:06:39 +0000 (10:06 +0000)
http_requestpool_object.c

index 5edc073c0e0be75aafd88e5cbb48227f7bf70a43..48783c8d3c9f52158fb97f76c88a7a8d4f588131 100644 (file)
@@ -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)