PHP_HTTP_API void _http_info_default_callback(void **nothing, HashTable **headers, http_info *info TSRMLS_DC)
{
zval array;
- Z_ARRVAL(array) = *headers;
+
+ INIT_ZARR(array, *headers);
switch (info->type)
{
}
/* where's the end of the line */
- if (!((end = strchr(pre_header, '\r')) || (end = strchr(pre_header, '\n')))) {
+ if (!(end = http_locate_eol(pre_header, NULL))) {
end = pre_header + strlen(pre_header);
}