- add http_support() for probing features that depend on external libraries
[m6w6/ext-http] / http_request_api.c
index 2e3118114f9e282944613788493e41012d634346..56373d7d68e3d2d67637e8fc247e32824597d53f 100644 (file)
@@ -970,6 +970,15 @@ static inline void _http_curl_defaults(CURL *ch)
 
 #endif /* HTTP_HAVE_CURL */
 
+zend_bool _http_request_supports_ssl(void)
+{
+#ifdef HTTP_NEED_SSL
+       return (zend_bool) 1;
+#else
+       return (zend_bool) 0;
+#endif
+}
+
 /*
  * Local variables:
  * tab-width: 4