#ifdef HTTP_HAVE_CURL
zend_llist_init(&G->request.copies.strings, sizeof(char *), http_request_data_free_string, 0);
zend_llist_init(&G->request.copies.slists, sizeof(struct curl_slist *), http_request_data_free_slist, 0);
+ zend_llist_init(&G->request.copies.contexts, sizeof(http_curl_callback_ctx *), http_request_data_free_context, 0);
#endif
}
zend_hash_destroy(&G->request.methods.custom);
zend_llist_clean(&G->request.copies.strings);
zend_llist_clean(&G->request.copies.slists);
+ zend_llist_clean(&G->request.copies.contexts);
}
/* }}} */
{
http_module_number = module_number;
- ZEND_INIT_MODULE_GLOBALS(http, NULL, NULL);
+#ifdef ZTS
+ ZEND_INIT_MODULE_GLOBALS(http, NULL, NULL)
+#endif
+
REGISTER_INI_ENTRIES();
#ifdef HTTP_HAVE_CURL