| modification, are permitted provided that the conditions mentioned |
| in the accompanying LICENSE file are met. |
+--------------------------------------------------------------------+
- | Copyright (c) 2004-2010, Michael Wallner <mike@php.net> |
+ | Copyright (c) 2004-2011, Michael Wallner <mike@php.net> |
+--------------------------------------------------------------------+
*/
-/* $Id: http_headers_api.c 300300 2010-06-09 07:29:35Z mike $ */
-
#include "php_http.h"
PHP_HTTP_API STATUS php_http_headers_parse(const char *header, size_t length, HashTable *headers, php_http_info_callback_t callback_func, void **callback_data TSRMLS_DC)
{
php_http_header_parser_t ctx;
- php_http_buffer buf;
+ php_http_buffer_t buf;
php_http_buffer_from_string_ex(&buf, header, length);
php_http_header_parser_init(&ctx TSRMLS_CC);