#include "php_http.h"
#include "php_http_api.h"
#include "php_http_curl_api.h"
+#include "php_http_std_defs.h"
#ifdef ZEND_ENGINE_2
# include "ext/standard/php_http.h"
};
/* }}} */
+
+static void free_to_free(void *s)
+{
+ efree(*(char **)s);
+}
+
/* {{{ php_http_init_globals(zend_http_globals *) */
static void php_http_init_globals(zend_http_globals *http_globals)
{
http_globals->curlbuf.used = 0;
http_globals->curlbuf.free = 0;
http_globals->curlbuf.size = 0;
+ zend_llist_init(&http_globals->to_free, sizeof(char *), free_to_free, 0);
#endif
http_globals->allowed_methods = NULL;
}