X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_send_api.h;fp=php_http_send_api.h;h=367afa4c50468fc8d359d7e4fa4bc80bcd264dc8;hp=4b7d0baa1bab9fbb80f4dc1593ad8a25efa6eda1;hb=ea72d21d93fa8e5a1a21422b14e90e6c89af3d54;hpb=51669004bbd20bcb4cd9d509799ff65e3998ea47 diff --git a/php_http_send_api.h b/php_http_send_api.h index 4b7d0ba..367afa4 100644 --- a/php_http_send_api.h +++ b/php_http_send_api.h @@ -29,7 +29,7 @@ typedef enum _http_send_mode_t { extern PHP_MINIT_FUNCTION(http_send); -#define http_send_status(s) sapi_header_op(SAPI_HEADER_SET_STATUS, (void *) (s) TSRMLS_CC) +#define http_send_status(s) sapi_header_op(SAPI_HEADER_SET_STATUS, (void *) (long) (s) TSRMLS_CC) #define http_send_header(n, v, r) _http_send_header_ex((n), strlen(n), (v), strlen(v), (r), NULL TSRMLS_CC) #define http_send_header_ex(n, nl, v, vl, r, s) _http_send_header_ex((n), (nl), (v), (vl), (r), (s) TSRMLS_CC) PHP_HTTP_API STATUS _http_send_header_ex(const char *name, size_t name_len, const char *value, size_t value_len, zend_bool replace, char **sent_header TSRMLS_DC);