X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_api.h;h=44d8ac6bb3f8e7bbb6c4eda9d1fad6826c159359;hp=27e0babf629f2a03fc24b216b3304504d58b0637;hb=8d9da7c8014b2738ec646b0415223f75f43059e7;hpb=e434da0fad7db62d86c236c68b22150165f2647a diff --git a/php_http_api.h b/php_http_api.h index 27e0bab..44d8ac6 100644 --- a/php_http_api.h +++ b/php_http_api.h @@ -33,7 +33,7 @@ extern STATUS _http_exit_ex(int status, char *header, zend_bool free_header TSRM #define http_check_method(m) http_check_method_ex((m), HTTP_KNOWN_METHODS) #define http_check_method_ex(m, a) _http_check_method_ex((m), (a)) -extern STATUS _http_check_method(const char *method, const char *methods); +extern STATUS _http_check_method_ex(const char *method, const char *methods); #define HTTP_GSC(var, name, ret) HTTP_GSP(var, name, return ret) #define HTTP_GSP(var, name, ret) \ @@ -46,7 +46,7 @@ extern STATUS _http_check_method(const char *method, const char *methods); PHP_HTTP_API zval *_http_get_server_var_ex(const char *key, size_t key_size, zend_bool check TSRMLS_DC); #define http_chunked_decode(e, el, d, dl) _http_chunked_decode((e), (el), (d), (dl) TSRMLS_CC) -PHP_HTTP_API char *_http_chunked_decode(const char *encoded, size_t encoded_len, char **decoded, size_t *decoded_len TSRMLS_DC); +PHP_HTTP_API const char *_http_chunked_decode(const char *encoded, size_t encoded_len, char **decoded, size_t *decoded_len TSRMLS_DC); #define http_split_response(r, h, b) _http_split_response((r), (h), (b) TSRMLS_CC) PHP_HTTP_API STATUS _http_split_response(zval *response, zval *headers, zval *body TSRMLS_DC);