X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http.h;h=4dc95327450cebe0152e3b02af1b018795f6318a;hp=67dcc3556404c9cc506af706e7eff33dc47fb769;hb=84db30e7a19ccab0526f20476dace985d05eca3d;hpb=b7d38027432247956b62e12f2c56ac3fffb77318 diff --git a/php_http.h b/php_http.h index 67dcc35..4dc9532 100644 --- a/php_http.h +++ b/php_http.h @@ -38,19 +38,6 @@ # define PHP_HTTP_API #endif -#include
-#include
-#include
-#include
-#include -#include -#include -#include -#include -#include -#include -#include - /* make functions that return SUCCESS|FAILURE more obvious */ typedef int STATUS; @@ -59,13 +46,10 @@ typedef int STATUS; #if (defined(HAVE_ICONV) || defined(PHP_HTTP_HAVE_EXT_ICONV)) && (PHP_HTTP_SHARED_DEPS || !defined(COMPILE_DL_ICONV)) # define PHP_HTTP_HAVE_ICONV -# undef PHP_ATOM_INC -# include #endif #if (defined(HAVE_HASH_EXT) || defined(PHP_HTTP_HAVE_EXT_HASH)) && (PHP_HTTP_SHARED_DEPS || !defined(COMPILE_DL_HASH)) && defined(PHP_HTTP_HAVE_PHP_HASH_H) # define PHP_HTTP_HAVE_HASH -# include "php_hash.h" #endif #ifdef PHP_WIN32 @@ -81,33 +65,12 @@ typedef int STATUS; #endif #ifdef PHP_HTTP_HAVE_EVENT -# include +//# include #endif #include #define PHP_HTTP_CURL_VERSION(x, y, z) (LIBCURL_VERSION_NUM >= (((x)<<16) + ((y)<<8) + (z))) -#if defined(ZTS) && defined(PHP_HTTP_HAVE_SSL) -# ifdef PHP_WIN32 -# define PHP_HTTP_NEED_OPENSSL_TSL -# include -# else /* !PHP_WIN32 */ -# if defined(PHP_HTTP_HAVE_OPENSSL) -# define PHP_HTTP_NEED_OPENSSL_TSL -# include -# elif defined(PHP_HTTP_HAVE_GNUTLS) -# define PHP_HTTP_NEED_GNUTLS_TSL -# include -# else -# warning \ - "libcurl was compiled with SSL support, but configure could not determine which" \ - "library was used; thus no SSL crypto locking callbacks will be set, which may " \ - "cause random crashes on SSL requests" -# endif /* PHP_HTTP_HAVE_OPENSSL || PHP_HTTP_HAVE_GNUTLS */ -# endif /* PHP_WIN32 */ -#endif /* ZTS && PHP_HTTP_HAVE_SSL */ - -#include #include #define PHP_HTTP_IS_CTYPE(type, c) is##type((int) (unsigned char) (c)) #define PHP_HTTP_TO_CTYPE(type, c) to##type((int) (unsigned char) (c))