just use the flag for the data format you want to generate:
HTTP_DEFLATE_TYPE_GZIP, HTTP_DEFLATE_TYPE_ZLIB or HTTP_DEFLATE_TYPE_RAW.
+Windows:
+ There's no HttpUtil alias for http_build_query() due to missing export.
+
Internals:
- there's a memleak with sizeof(zval) for each thrown exception,
which ends up in HttpRequestPoolExcepiont::$exceptionStack, in
HttpRequestPool::__construct(); it doesn't happen with wrapped
exceptions in HttpRequestPool::send().
+
+ - our http_urlencode_hash() only handles arrays and does not
+ differentiate between prefixes for numeric or string keys.
\ No newline at end of file
if (PHP_SESSION != "no") {
ADD_EXTENSION_DEP("http", "session", true);
}
- // for http_build_query()
- ADD_EXTENSION_DEP("http", "standard");
CURL_LIB = PHP_DEBUG != "no" ? "libcurld.lib":"libcurl.lib";
- if (CHECK_HEADER_ADD_INCLUDE("curl/curl.h", "CFLAGS_HTTP") &&
- CHECK_HEADER_ADD_INCLUDE("openssl/crypto.h", "CFLAGS_HTTP") &&
+ if (CHECK_HEADER_ADD_INCLUDE("curl/curl.h", "CFLAGS_HTTP") &&
+ CHECK_HEADER_ADD_INCLUDE("openssl/crypto.h", "CFLAGS_HTTP") &&
CHECK_LIB(CURL_LIB, "http", PHP_HTTP) &&
CHECK_LIB("ssleay32.lib", "http", PHP_HTTP) &&
CHECK_LIB("libeay32.lib", "http", PHP_HTTP) &&
HTTP_ARG_VAL(timestamp, 0)
HTTP_END_ARGS;
+#ifndef PHP_WIN32
HTTP_BEGIN_ARGS(buildQuery, 1)
HTTP_ARG_VAL(query, 0)
HTTP_END_ARGS;
+#endif
HTTP_BEGIN_ARGS(buildUrl, 1)
HTTP_ARG_VAL(url, 0)
zend_function_entry http_util_object_fe[] = {
HTTP_UTIL_ALIAS(date, http_date)
HTTP_UTIL_ALIAS(buildUrl, http_build_url)
+#ifndef PHP_WIN32
HTTP_UTIL_ALIAS(buildQuery, http_build_query)
+#endif
HTTP_UTIL_ALIAS(negotiateLanguage, http_negotiate_language)
HTTP_UTIL_ALIAS(negotiateCharset, http_negotiate_charset)
HTTP_UTIL_ALIAS(negotiateContentType, http_negotiate_content_type)
PHP_METHOD(HttpUtil, date);
PHP_METHOD(HttpUtil, buildUrl);
+#ifndef PHP_WIN32
PHP_METHOD(HttpUtil, buildQuery);
+#endif
PHP_METHOD(HttpUtil, negotiateLanguage);
PHP_METHOD(HttpUtil, negotiateCharset);
PHP_METHOD(HttpUtil, negotiateContentType);