projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- preventively set Accept-Encoding
[m6w6/ext-http]
/
http_request_api.c
diff --git
a/http_request_api.c
b/http_request_api.c
index b6c2e833c8b5bf0808a65b8b41f4ae04a501048d..097049f3c82b6ab562508d362c5feafda26fb02d 100644
(file)
--- a/
http_request_api.c
+++ b/
http_request_api.c
@@
-20,6
+20,8
@@
#endif
#include "php.h"
#endif
#include "php.h"
+#ifdef HTTP_HAVE_CURL
+
#include "php_http.h"
#include "php_http_std_defs.h"
#include "php_http_api.h"
#include "php_http.h"
#include "php_http_std_defs.h"
#include "php_http_api.h"
@@
-462,7
+464,7
@@
PHP_HTTP_API STATUS _http_request_init(CURL *ch, http_request_method meth, char
phpstr_fix(qstr);
HTTP_CURL_OPT(COOKIE, http_request_data_copy(COPY_STRING, qstr->data));
}
phpstr_fix(qstr);
HTTP_CURL_OPT(COOKIE, http_request_data_copy(COPY_STRING, qstr->data));
}
- phpstr_free(qstr);
+ phpstr_free(
&
qstr);
} else {
HTTP_CURL_OPT(COOKIE, NULL);
}
} else {
HTTP_CURL_OPT(COOKIE, NULL);
}
@@
-972,6
+974,8
@@
static inline zval *_http_curl_getopt_ex(HashTable *options, char *key, size_t k
}
/* }}} */
}
/* }}} */
+#endif
+
/*
* Local variables:
* tab-width: 4
/*
* Local variables:
* tab-width: 4