X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_filter_api.c;h=02467decdb2844570151a79883d83d10ad9a89ca;hp=dcc71867ed444648c0d09f53e34ff35507882474;hb=e2d31d8ae762ed3acb0ef5ec21edfcc94293dfaf;hpb=ccd556e32e7264830790ec13b72a9b0e3760684b diff --git a/http_filter_api.c b/http_filter_api.c index dcc7186..02467de 100644 --- a/http_filter_api.c +++ b/http_filter_api.c @@ -165,8 +165,8 @@ static HTTP_FILTER_FUNCTION(chunked_decode) /* ignore preceeding CRLFs (too loose?) */ while (off < PHPSTR_LEN(buffer) && ( - PHPSTR_VAL(buffer)[off] == 0xa || - PHPSTR_VAL(buffer)[off] == 0xd)) { + PHPSTR_VAL(buffer)[off] == '\n' || + PHPSTR_VAL(buffer)[off] == '\r')) { ++off; } if (off) { @@ -484,7 +484,7 @@ static php_stream_filter *http_filter_create(const char *name, zval *params, int { case IS_ARRAY: case IS_OBJECT: - if (SUCCESS != zend_hash_find(HASH_OF(params), "flags", sizeof("flags"), (void **) &tmp)) { + if (SUCCESS != zend_hash_find(HASH_OF(params), "flags", sizeof("flags"), (void *) &tmp)) { break; } default: