* typo
[m6w6/ext-http] / http_functions.c
index aeeea5b9eca8e35be5f30ab24fb08ce2e04e5f17..0b39b72cf36ef5e30715d0ea604edc474f0498a3 100644 (file)
@@ -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,11 +977,11 @@ PHP_FUNCTION(http_build_query)
        }
 
        if (!arg_sep_len) {
-               arg_sep = HTTP_URL_ARGSEP_DEFAULT;
+               arg_sep = HTTP_URL_ARGSEP;
        }
 
        formstr = phpstr_new();
-       if (SUCCESS != http_urlencode_hash_implementation_ex(HASH_OF(formdata), formstr, arg_sep, prefix, prefix_len, NULL, 0, NULL, 0, (Z_TYPE_P(formdata) == IS_OBJECT ? formdata : NULL) TSRMLS_CC)) {
+       if (SUCCESS != http_urlencode_hash_implementation_ex(HASH_OF(formdata), formstr, arg_sep, prefix, prefix_len, NULL, 0, NULL, 0, (Z_TYPE_P(formdata) == IS_OBJECT ? formdata : NULL))) {
                phpstr_free(formstr);
                RETURN_FALSE;
        }