- add libevent support
[m6w6/ext-http] / http.c
diff --git a/http.c b/http.c
index b4ed0dfbdcd06083c61ef621912b0900522ba7b6..8d73ecbdfc5d10f288e18eb0bd26e447c5b932ed 100644 (file)
--- a/http.c
+++ b/http.c
@@ -363,6 +363,9 @@ PHP_RINIT_FUNCTION(http)
 #endif
 #ifdef HTTP_HAVE_CURL
 #      ifdef ZEND_ENGINE_2
+#              ifdef HTTP_HAVE_EVENT
+               || SUCCESS != PHP_RINIT_CALL(http_request_pool)
+#              endif
                || SUCCESS != PHP_RINIT_CALL(http_request_datashare)
 #      endif
 #endif