X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_functions.c;h=9b57b64204d8254bcf2ae0a34834b5ac4c227734;hp=a0eb58b3b210caf2dfd7182fad62004e7c4fbf53;hb=e006146f6dc8601b2123d10e87311d06325231e7;hpb=0ac32c9b8590e88a5f110cc8b3154001d5c0c089 diff --git a/http_functions.c b/http_functions.c index a0eb58b..9b57b64 100644 --- a/http_functions.c +++ b/http_functions.c @@ -20,6 +20,7 @@ #endif #include "php.h" +#include "php_ini.h" #include "ext/standard/info.h" #include "ext/session/php_session.h" #include "ext/standard/php_string.h" @@ -586,7 +587,6 @@ PHP_FUNCTION(http_chunked_decode) * 0 => array( * 'Status' => '200 Ok', * 'Content-Type' => 'text/plain', - * 'Content-Language' => 'en-US' * ), * 1 => "Hello World!" @@ -977,7 +977,7 @@ PHP_FUNCTION(http_build_query) } if (!arg_sep_len) { - arg_sep = HTTP_URL_ARGSEP_DEFAULT; + arg_sep = HTTP_URL_ARGSEP; } formstr = phpstr_new(); @@ -999,21 +999,6 @@ PHP_FUNCTION(http_build_query) PHP_FUNCTION(http_test) { -#define HTTP_MESSAGE_STR \ - "GET / HTTP/1.1\r\n" \ - "Content-Type: foo/bar\r\n" \ - "Robots: Noindex,Nofollow\r\n" \ - "\r\n" \ - "Body Data!\n" -#define HTTP_MESSAGE_LEN lenof(HTTP_MESSAGE_STR) - http_message *msg = http_message_parse(HTTP_MESSAGE_STR, HTTP_MESSAGE_LEN); - char *str; - size_t len; - - http_message_tostring(msg, &str, &len); - - RETVAL_STRINGL(str, len, 0); - http_message_free(msg); } /*