ZEND_EXTERN_MODULE_GLOBALS(http);
-static zend_bool http_support_ssl;
-
PHP_MINIT_FUNCTION(http_support)
{
- http_support_ssl = http_request_supports_ssl();
-
HTTP_LONG_CONSTANT("HTTP_SUPPORT", HTTP_SUPPORT);
HTTP_LONG_CONSTANT("HTTP_SUPPORT_REQUESTS", HTTP_SUPPORT_REQUESTS);
HTTP_LONG_CONSTANT("HTTP_SUPPORT_MAGICMIME", HTTP_SUPPORT_MAGICMIME);
#ifdef HTTP_HAVE_CURL
support |= HTTP_SUPPORT_REQUESTS;
- if (http_support_ssl) {
- support |= HTTP_SUPPORT_SSLREQUESTS;
- }
+# ifdef HTTP_HAVE_SSL
+ support |= HTTP_SUPPORT_SSLREQUESTS;
+# endif
#endif
#ifdef HTTP_HAVE_MHASH
support |= HTTP_SUPPORT_MHASHETAGS;
#ifndef PHP_EXT_HTTP_H
#define PHP_EXT_HTTP_H
-#define HTTP_PEXT_VERSION "0.16.0"
+#define HTTP_PEXT_VERSION "0.16.1dev"
/* make compile on Win32 */
#ifdef HTTP_HAVE_CURL
#ifndef PHP_HTTP_REQUEST_API_H
#define PHP_HTTP_REQUEST_API_H
-#define http_request_supports_ssl() _http_request_supports_ssl()
-extern zend_bool _http_request_supports_ssl(void);
-
-
#ifdef HTTP_HAVE_CURL
#include "php_http_std_defs.h"