fix uninitialized value
[m6w6/ext-http] / php_http_request_pool.c
index 8585d775171a91cfa6f853e272e666ce9b5477a2..4be111105a1d96aab78f0d8e1c983d1307a078bd 100644 (file)
@@ -1,6 +1,12 @@
 
 #include "php_http.h"
 
+#ifdef PHP_HTTP_HAVE_EVENT
+#      include <event.h>
+#endif
+
+#include <ext/spl/spl_iterators.h>
+#include <Zend/zend_interfaces.h>
 
 #ifndef PHP_HTTP_DEBUG_REQPOOLS
 #      define PHP_HTTP_DEBUG_REQPOOLS 0
@@ -254,7 +260,7 @@ PHP_HTTP_API void php_http_request_pool_dtor(php_http_request_pool_t *pool)
        pool->unfinished = 0;
        zend_llist_clean(&pool->finished);
        zend_llist_clean(&pool->handles);
-       php_http_persistent_handle_release(ZEND_STRL("php_http_request_pool_t"), &pool->ch TSRMLS_CC);
+       php_http_persistent_handle_release(ZEND_STRL("http_request_pool"), &pool->ch TSRMLS_CC);
 }
 
 PHP_HTTP_API void php_http_request_pool_free(php_http_request_pool_t **pool) {