| modification, are permitted provided that the conditions mentioned |
| in the accompanying LICENSE file are met. |
+--------------------------------------------------------------------+
- | Copyright (c) 2004-2011, Michael Wallner <mike@php.net> |
+ | Copyright (c) 2004-2013, Michael Wallner <mike@php.net> |
+--------------------------------------------------------------------+
*/
len = dec_len;
}
- php_stream_write(php_http_message_body_stream(&(*message)->body), str, len);
+ php_stream_write(php_http_message_body_stream((*message)->body), str, len);
/* keep track */
MAKE_STD_ZVAL(zcl);
- ZVAL_LONG(zcl, php_http_message_body_size(&(*message)->body));
+ ZVAL_LONG(zcl, php_http_message_body_size((*message)->body));
zend_hash_update(&(*message)->hdrs, "Content-Length", sizeof("Content-Length"), &zcl, sizeof(zval *), NULL);
}
size_t dec_len;
if (SUCCESS != php_http_encoding_stream_update(parser->dechunk, buffer->data, buffer->used, &dec_str, &dec_len)) {
- return FAILURE;
+ return PHP_HTTP_MESSAGE_PARSER_STATE_FAILURE;
}
str = dec_str;