projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
60ec6f1
)
ifdef unused variables
author
Antony Dovgal
<tony2001@php.net>
Fri, 8 Aug 2008 10:06:39 +0000
(10:06 +0000)
committer
Antony Dovgal
<tony2001@php.net>
Fri, 8 Aug 2008 10:06:39 +0000
(10:06 +0000)
http_requestpool_object.c
patch
|
blob
|
history
diff --git
a/http_requestpool_object.c
b/http_requestpool_object.c
index 5edc073c0e0be75aafd88e5cbb48227f7bf70a43..48783c8d3c9f52158fb97f76c88a7a8d4f588131 100644
(file)
--- 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;
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);
getObject(http_requestpool_object, obj);
+#endif
if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|b", &enable)) {
RETURN_FALSE;
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;
PHP_METHOD(HttpRequestPool, enableEvents)
{
zend_bool enable = 1;
+#if defined(HTTP_HAVE_EVENT)
getObject(http_requestpool_object, obj);
getObject(http_requestpool_object, obj);
+#endif
if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|b", &enable)) {
#if defined(HTTP_HAVE_EVENT)
if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|b", &enable)) {
#if defined(HTTP_HAVE_EVENT)