projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
missing bit
[m6w6/ext-http]
/
src
/
php_http_params.c
diff --git
a/src/php_http_params.c
b/src/php_http_params.c
index 0cbfc7e81e92b02f00060077de27829c21b1cd2f..75a9e3813c36e146ad76877f3f34db05b6700e1c 100644
(file)
--- a/
src/php_http_params.c
+++ b/
src/php_http_params.c
@@
-677,8
+677,9
@@
static void skip_sep(size_t skip, php_http_params_state_t *state, php_http_param
HashTable *php_http_params_parse(HashTable *params, const php_http_params_opts_t *opts)
{
HashTable *php_http_params_parse(HashTable *params, const php_http_params_opts_t *opts)
{
- php_http_params_state_t state
= {{NULL,0}, {NULL,0}, {NULL,0}, {NULL,0}, {NULL,NULL,NULL}, 0, 0}
;
+ php_http_params_state_t state;
+ memset(&state, 0, sizeof(state));
state.input.str = opts->input.str;
state.input.len = opts->input.len;
state.input.str = opts->input.str;
state.input.len = opts->input.len;
@@
-1290,7
+1291,7
@@
PHP_METHOD(HttpParams, offsetSet)
}
static zend_function_entry php_http_params_methods[] = {
}
static zend_function_entry php_http_params_methods[] = {
- PHP_ME(HttpParams, __construct, ai_HttpParams___construct, ZEND_ACC_PUBLIC|ZEND_ACC_
CTOR|ZEND_ACC_
FINAL)
+ PHP_ME(HttpParams, __construct, ai_HttpParams___construct, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
PHP_ME(HttpParams, toArray, ai_HttpParams_toArray, ZEND_ACC_PUBLIC)
PHP_ME(HttpParams, toString, ai_HttpParams_toString, ZEND_ACC_PUBLIC)
PHP_ME(HttpParams, toArray, ai_HttpParams_toArray, ZEND_ACC_PUBLIC)
PHP_ME(HttpParams, toString, ai_HttpParams_toString, ZEND_ACC_PUBLIC)