X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fphp_http_params.c;h=fc75f0e96140151f52e918ec8136cbf9140c8304;hb=6de53548089307e1e035a2b1a949b7e3304e1698;hp=c722f06a322295d9d6f5d7df0ef4cd8f9a40ca6a;hpb=25faf6638230f290e14e3947db56dcc09b3d3d62;p=m6w6%2Fext-http diff --git a/src/php_http_params.c b/src/php_http_params.c index c722f06..fc75f0e 100644 --- a/src/php_http_params.c +++ b/src/php_http_params.c @@ -523,7 +523,9 @@ static void merge_param(HashTable *params, zval *zdata, zval ***current_param, z static void push_param(HashTable *params, php_http_params_state_t *state, const php_http_params_opts_t *opts TSRMLS_DC) { if (state->val.str) { - if (0 < (state->val.len = state->input.str - state->val.str)) { + if (!state->current.val) { + return; + } else if (0 < (state->val.len = state->input.str - state->val.str)) { sanitize_value(opts->flags, state->val.str, state->val.len, *(state->current.val), state->rfc5987 TSRMLS_CC); } else { ZVAL_EMPTY_STRING(*(state->current.val));