X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=php_http_filter.c;h=9dd0827d016b935cd5ec8c855d98433c6f9b2258;hb=e76f27074a23b1cf83fdd81f97a5c767399225a6;hp=95b3cbf13f5096ed0856782b5107a3168a3e570b;hpb=d3485e3b28336153dca690e872ffe1ddc60fedd2;p=m6w6%2Fext-http diff --git a/php_http_filter.c b/php_http_filter.c index 95b3cbf..9dd0827 100644 --- a/php_http_filter.c +++ b/php_http_filter.c @@ -63,7 +63,7 @@ PHP_MINIT_FUNCTION(http_filter) } typedef struct _http_chunked_decode_filter_buffer_t { - php_http_buffer buffer; + php_http_buffer_t buffer; ulong hexlen; } PHP_HTTP_FILTER_BUFFER(chunked_decode); @@ -223,7 +223,7 @@ static PHP_HTTP_FILTER_FUNCTION(chunked_encode) /* new data available? */ if (buckets_in->head) { - php_http_buffer buf; + php_http_buffer_t buf; out_avail = 1; php_http_buffer_init(&buf); @@ -235,7 +235,7 @@ static PHP_HTTP_FILTER_FUNCTION(chunked_encode) *bytes_consumed += ptr->buflen; } - php_http_buffer_appendf(&buf, "%lx" PHP_HTTP_CRLF, ptr->buflen); + php_http_buffer_appendf(&buf, "%lx" PHP_HTTP_CRLF, (long unsigned int) ptr->buflen); php_http_buffer_append(&buf, ptr->buf, ptr->buflen); php_http_buffer_appends(&buf, PHP_HTTP_CRLF); @@ -297,7 +297,7 @@ static PHP_HTTP_FILTER_FUNCTION(zlib) } if (ptr->buflen) { - php_http_encoding_stream_update(buffer, ptr->buf, ptr->buflen, &encoded, &encoded_len TSRMLS_CC); + php_http_encoding_stream_update(buffer, ptr->buf, ptr->buflen, &encoded, &encoded_len); if (encoded) { if (encoded_len) { out_avail = 1; @@ -317,7 +317,7 @@ static PHP_HTTP_FILTER_FUNCTION(zlib) char *encoded = NULL; size_t encoded_len = 0; - php_http_encoding_stream_flush(buffer, &encoded, &encoded_len TSRMLS_CC); + php_http_encoding_stream_flush(buffer, &encoded, &encoded_len); if (encoded) { if (encoded_len) { out_avail = 1; @@ -331,7 +331,7 @@ static PHP_HTTP_FILTER_FUNCTION(zlib) char *encoded = NULL; size_t encoded_len = 0; - php_http_encoding_stream_finish(buffer, &encoded, &encoded_len TSRMLS_CC); + php_http_encoding_stream_finish(buffer, &encoded, &encoded_len); if (encoded) { if (encoded_len) { out_avail = 1; @@ -346,7 +346,7 @@ static PHP_HTTP_FILTER_FUNCTION(zlib) static PHP_HTTP_FILTER_DESTRUCTOR(zlib) { PHP_HTTP_FILTER_BUFFER(zlib) *buffer = (PHP_HTTP_FILTER_BUFFER(zlib) *) this->abstract; - php_http_encoding_stream_free(&buffer TSRMLS_CC); + php_http_encoding_stream_free(&buffer); } static PHP_HTTP_FILTER_OPS(deflate) = { @@ -387,7 +387,7 @@ static php_stream_filter *http_filter_create(const char *name, zval *params, int if ((b = php_http_encoding_stream_init(NULL, php_http_encoding_stream_get_inflate_ops(), flags TSRMLS_CC))) { if (!(f = php_stream_filter_alloc(&PHP_HTTP_FILTER_OP(inflate), b, p))) { - php_http_encoding_stream_free(&b TSRMLS_CC); + php_http_encoding_stream_free(&b); } } } else @@ -405,7 +405,7 @@ static php_stream_filter *http_filter_create(const char *name, zval *params, int } default: { - zval *num = php_http_zsep(IS_LONG, *tmp); + zval *num = php_http_ztyp(IS_LONG, *tmp); flags |= (Z_LVAL_P(num) & 0x0fffffff); zval_ptr_dtor(&num); @@ -414,7 +414,7 @@ static php_stream_filter *http_filter_create(const char *name, zval *params, int } if ((b = php_http_encoding_stream_init(NULL, php_http_encoding_stream_get_deflate_ops(), flags TSRMLS_CC))) { if (!(f = php_stream_filter_alloc(&PHP_HTTP_FILTER_OP(deflate), b, p))) { - php_http_encoding_stream_free(&b TSRMLS_CC); + php_http_encoding_stream_free(&b); } } }