#define HTTP_WANT_SAPI
#define HTTP_WANT_CURL
+#define HTTP_WANT_EVENT
#define HTTP_WANT_ZLIB
#define HTTP_WANT_MAGIC
#include "php_http.h"
# ifdef HTTP_HAVE_ICONV
ZEND_MOD_REQUIRED("iconv")
# endif
+# ifdef HTTP_HAVE_EVENT
+ ZEND_MOD_CONFLICTS("event")
+#endif
{NULL, NULL, NULL, 0}
};
#endif
}
}
-#if PHP_DEBUG
+#if defined(ZTS) && defined(PHP_DEBUG)
+#if ZTS && PHP_DEBUG
zend_http_globals *http_globals(void)
{
TSRMLS_FETCH();
return HTTP_G;
}
#endif
+#endif
/* }}} */
/* {{{ static inline void http_check_allowed_methods(char *) */
#endif
#ifdef HTTP_HAVE_CURL
# ifdef ZEND_ENGINE_2
+# ifdef HTTP_HAVE_EVENT
+ || SUCCESS != PHP_RINIT_CALL(http_request_pool)
+# endif
|| SUCCESS != PHP_RINIT_CALL(http_request_datashare)
# endif
#endif