From: Michael Wallner Date: Sun, 5 Feb 2006 07:54:31 +0000 (+0000) Subject: - fix win32 build, really, for now X-Git-Tag: RELEASE_0_23_0~37 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=1c418a9e67b6b002fb0fa0616842cf92a54a108c - fix win32 build, really, for now --- diff --git a/KnownIssues.txt b/KnownIssues.txt index 41fa515..7fdda72 100644 --- a/KnownIssues.txt +++ b/KnownIssues.txt @@ -18,8 +18,14 @@ generate any compressed data (gzip, deflate AKA zlib and raw deflate); 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 diff --git a/config.w32 b/config.w32 index ae73eae..5411da1 100644 --- a/config.w32 +++ b/config.w32 @@ -85,12 +85,10 @@ if (PHP_HTTP != "no") { 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) && diff --git a/http_util_object.c b/http_util_object.c index d89cb99..6bda86d 100644 --- a/http_util_object.c +++ b/http_util_object.c @@ -29,9 +29,11 @@ HTTP_BEGIN_ARGS(date, 0) 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) @@ -104,7 +106,9 @@ zend_class_entry *http_util_object_ce; 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) diff --git a/php_http_util_object.h b/php_http_util_object.h index 4c263a2..929ad6b 100644 --- a/php_http_util_object.h +++ b/php_http_util_object.h @@ -23,7 +23,9 @@ extern PHP_MINIT_FUNCTION(http_util_object); 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);