projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
remodel file adding to accept paths, streams and plain data as upload files
[m6w6/ext-http]
/
php_http_filter.c
diff --git
a/php_http_filter.c
b/php_http_filter.c
index cdbc4088b4a5edbf8655144376a3eaece71c79c8..121966b86a6f7292a912d0fc77dc4822595cce59 100644
(file)
--- a/
php_http_filter.c
+++ b/
php_http_filter.c
@@
-10,7
+10,7
@@
+--------------------------------------------------------------------+
*/
+--------------------------------------------------------------------+
*/
-#include "php_http.h"
+#include "php_http
_api
.h"
PHP_MINIT_FUNCTION(http_filter)
{
PHP_MINIT_FUNCTION(http_filter)
{
@@
-401,13
+401,16
@@
static php_stream_filter *http_filter_create(const char *name, zval *params, int
if (SUCCESS != zend_hash_find(HASH_OF(params), "flags", sizeof("flags"), (void *) &tmp)) {
break;
}
if (SUCCESS != zend_hash_find(HASH_OF(params), "flags", sizeof("flags"), (void *) &tmp)) {
break;
}
+ /* no break */
default:
{
zval *num = php_http_ztyp(IS_LONG, *tmp);
flags |= (Z_LVAL_P(num) & 0x0fffffff);
zval_ptr_dtor(&num);
default:
{
zval *num = php_http_ztyp(IS_LONG, *tmp);
flags |= (Z_LVAL_P(num) & 0x0fffffff);
zval_ptr_dtor(&num);
+
}
}
+ break;
}
}
if ((b = php_http_encoding_stream_init(NULL, php_http_encoding_stream_get_deflate_ops(), flags TSRMLS_CC))) {
}
}
if ((b = php_http_encoding_stream_init(NULL, php_http_encoding_stream_get_deflate_ops(), flags TSRMLS_CC))) {