add_assoc_string(&array, "domain", STR_PTR(list->domain), 1);
}
-
-
PHP_HTTP_API php_http_cookie_list_t *php_http_cookie_list_from_struct(php_http_cookie_list_t *list, zval *strct TSRMLS_DC)
{
zval **tmp, *cpy;
PHP_HTTP_API STATUS php_http_encoding_stream_flush(php_http_encoding_stream_t *s, char **out_str, size_t *out_len)
{
if (!s->ops->flush) {
+ *out_str = NULL;
+ *out_len = 0;
return SUCCESS;
}
return s->ops->flush(s, out_str, out_len);
PHP_HTTP_API STATUS php_http_encoding_stream_finish(php_http_encoding_stream_t *s, char **out_str, size_t *out_len)
{
if (!s->ops->finish) {
+ *out_str = NULL;
+ *out_len = 0;
return SUCCESS;
}
return s->ops->finish(s, out_str, out_len);
* - body done
* N: - parse ahaed
*/
- size_t dec_len;
char *dec_str = NULL;
+ size_t dec_len;
if (SUCCESS != php_http_encoding_stream_update(parser->dechunk, buffer->data, buffer->used, &dec_str, &dec_len TSRMLS_CC)) {
return FAILURE;
php_http_message_parser_state_push(parser, 1, PHP_HTTP_MESSAGE_PARSER_STATE_DONE);
if (parser->dechunk) {
- char *dec_str;
+ char *dec_str = NULL;
size_t dec_len;
if (SUCCESS != php_http_encoding_stream_finish(parser->dechunk, &dec_str, &dec_len TSRMLS_CC)) {