projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- add test
[m6w6/ext-http]
/
http.c
diff --git
a/http.c
b/http.c
index 2cc838508ce08922159fa5deb17273fe3119cfa6..c9e693126f2c9839a1e627524b9b4751108575bd 100644
(file)
--- a/
http.c
+++ b/
http.c
@@
-50,6
+50,10
@@
# include "php_http_request_object.h"
# include "php_http_requestpool_object.h"
# endif
# include "php_http_request_object.h"
# include "php_http_requestpool_object.h"
# endif
+# ifdef HTTP_HAVE_ZLIB
+# include "php_http_deflatestream_object.h"
+# include "php_http_inflatestream_object.h"
+# endif
# include "php_http_exception_object.h"
#endif
# include "php_http_exception_object.h"
#endif
@@
-252,6
+256,10
@@
PHP_MINIT_FUNCTION(http)
(SUCCESS != PHP_MINIT_CALL(http_request_object)) ||
(SUCCESS != PHP_MINIT_CALL(http_requestpool_object))||
# endif /* HTTP_HAVE_CURL */
(SUCCESS != PHP_MINIT_CALL(http_request_object)) ||
(SUCCESS != PHP_MINIT_CALL(http_requestpool_object))||
# endif /* HTTP_HAVE_CURL */
+# ifdef HTTP_HAVE_ZLIB
+ (SUCCESS != PHP_MINIT_CALL(http_deflatestream_object)) ||
+ (SUCCESS != PHP_MINIT_CALL(http_inflatestream_object)) ||
+# endif /* HTTP_HAVE_ZLIB */
(SUCCESS != PHP_MINIT_CALL(http_exception_object))) {
return FAILURE;
}
(SUCCESS != PHP_MINIT_CALL(http_exception_object))) {
return FAILURE;
}
@@
-330,6
+338,10
@@
PHP_MINFO_FUNCTION(http)
"HttpRequest, "
"HttpRequestPool, "
# endif
"HttpRequest, "
"HttpRequestPool, "
# endif
+# ifdef HTTP_HAVE_ZLIB
+ "HttpDeflateStream, "
+ "HttpInflateStream, "
+# endif
# ifndef WONKY
"HttpResponse"
# endif
# ifndef WONKY
"HttpResponse"
# endif