projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
ifdef unused variables
[m6w6/ext-http]
/
http_requestpool_object.c
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)