# endif
#endif
-#ifdef PHP_HTTP_HAVE_EVENT
-//# include <event.h>
-#endif
-
-#include <curl/curl.h>
#define PHP_HTTP_CURL_VERSION(x, y, z) (LIBCURL_VERSION_NUM >= (((x)<<16) + ((y)<<8) + (z)))
#include <ctype.h>
PHP_HTTP_MESSAGE_PARSER_STATE_DONE
} php_http_message_parser_state_t;
-#define PHP_HTTP_MESSAGE_PARSER_CLEANUP 0x1
+#define PHP_HTTP_MESSAGE_PARSER_CLEANUP 0x1
+#define PHP_HTTP_MESSAGE_PARSER_EMPTY_REDIRECTS 0x2
typedef struct php_http_message_parser {
php_http_header_parser_t header;
#ifndef PHP_HTTP_REQUEST_DATASHARE_H
#define PHP_HTTP_REQUEST_DATASHARE_H
+#include <curl/curl.h>
+
#ifdef ZTS
typedef struct php_http_request_datashare_lock {
CURL *ch;
#ifndef PHP_HTTP_REQUESTPOOL_H
#define PHP_HTTP_REQUESTPOOL_H
+#include <curl/curl.h>
+
struct php_http_request_pool_globals {
void *event_base;
};