projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- cleanup
[m6w6/ext-http]
/
http_filter_api.c
diff --git
a/http_filter_api.c
b/http_filter_api.c
index 35cff1cdb2b837937cc6418c26ebd2e8462e260d..02467decdb2844570151a79883d83d10ad9a89ca 100644
(file)
--- a/
http_filter_api.c
+++ b/
http_filter_api.c
@@
-74,7
+74,7
@@
PHP_MINIT_FUNCTION(http_filter)
php_stream_bucket_append(buckets_out, __buck TSRMLS_CC); \
}
php_stream_bucket_append(buckets_out, __buck TSRMLS_CC); \
}
-typedef struct {
+typedef struct
_http_chunked_decode_filter_buffer_t
{
phpstr buffer;
ulong hexlen;
} HTTP_FILTER_BUFFER(chunked_decode);
phpstr buffer;
ulong hexlen;
} HTTP_FILTER_BUFFER(chunked_decode);
@@
-165,8
+165,8
@@
static HTTP_FILTER_FUNCTION(chunked_decode)
/* ignore preceeding CRLFs (too loose?) */
while (off < PHPSTR_LEN(buffer) && (
/* 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) {
++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:
{
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:
break;
}
default: