projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- CURLOPT_COOKIELIST needs curl 7.15
[m6w6/ext-http]
/
http.c
diff --git
a/http.c
b/http.c
index d0617b639919f36243a6ba856092973483a57807..00f87743948d3450f47fb7173913453480ccd3ab 100644
(file)
--- a/
http.c
+++ b/
http.c
@@
-35,6
+35,9
@@
#ifdef HTTP_HAVE_CURL
# include "php_http_request_api.h"
#endif
#ifdef HTTP_HAVE_CURL
# include "php_http_request_api.h"
#endif
+#ifdef HTTP_HAVE_ZLIB
+# include "php_http_encoding_api.h"
+#endif
#ifdef ZEND_ENGINE_2
# include "php_http_filter_api.h"
#ifdef ZEND_ENGINE_2
# include "php_http_filter_api.h"
@@
-103,8
+106,6
@@
zend_function_entry http_functions[] = {
#endif
PHP_FE(ob_etaghandler, NULL)
#ifdef HTTP_HAVE_ZLIB
#endif
PHP_FE(ob_etaghandler, NULL)
#ifdef HTTP_HAVE_ZLIB
- PHP_FE(http_gzencode, NULL)
- PHP_FE(http_gzdecode, NULL)
PHP_FE(http_deflate, NULL)
PHP_FE(http_inflate, NULL)
#endif
PHP_FE(http_deflate, NULL)
PHP_FE(http_inflate, NULL)
#endif
@@
-223,6
+224,9
@@
PHP_MINIT_FUNCTION(http)
#ifdef HTTP_HAVE_CURL
(SUCCESS != PHP_MINIT_CALL(http_request)) ||
#endif /* HTTP_HAVE_CURL */
#ifdef HTTP_HAVE_CURL
(SUCCESS != PHP_MINIT_CALL(http_request)) ||
#endif /* HTTP_HAVE_CURL */
+#ifdef HTTP_HAVE_ZLIB
+ (SUCCESS != PHP_MINIT_CALL(http_encoding)) ||
+#endif
(SUCCESS != PHP_MINIT_CALL(http_request_method))) {
return FAILURE;
}
(SUCCESS != PHP_MINIT_CALL(http_request_method))) {
return FAILURE;
}