mirror of
https://github.com/php/php-src.git
synced 2026-04-28 18:53:33 +02:00
fix #29683 (headers_list() returns empty array)
This commit is contained in:
@@ -34,6 +34,7 @@ PHP NEWS
|
||||
PHP). (Marcus)
|
||||
- Fixed bug #31256 (PHP_EVAL_LIBLINE configure macro does not handle -pthread).
|
||||
(Jani)
|
||||
- Fixed bug #29683 (headers_list() returns empty array). (Tony)
|
||||
- Fixed bug #28355 (glob wont error if dir is not readable). (Hartmut)
|
||||
- Fixed bugs #20382, #28024, #30532, #32086, #32270, #32555, #32588, #33056
|
||||
(strtotime() related bugs). (Derick)
|
||||
|
||||
@@ -199,9 +199,7 @@ static int sapi_apache_header_handler(sapi_header_struct *sapi_header, sapi_head
|
||||
|
||||
*p = ':'; /* a well behaved header handler shouldn't change its original arguments */
|
||||
|
||||
efree(sapi_header->header);
|
||||
|
||||
return 0; /* don't use the default SAPI mechanism, Apache duplicates this functionality */
|
||||
return SAPI_HEADER_ADD;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
||||
@@ -128,9 +128,7 @@ php_apache_sapi_header_handler(sapi_header_struct *sapi_header, sapi_headers_str
|
||||
else
|
||||
apr_table_add(ctx->r->headers_out, sapi_header->header, val);
|
||||
|
||||
sapi_free_header(sapi_header);
|
||||
|
||||
return 0;
|
||||
return SAPI_HEADER_ADD;
|
||||
}
|
||||
|
||||
static int
|
||||
|
||||
@@ -112,9 +112,7 @@ php_apache_sapi_header_handler(sapi_header_struct *sapi_header,sapi_headers_stru
|
||||
apr_table_add(ctx->r->headers_out, sapi_header->header, val);
|
||||
}
|
||||
|
||||
sapi_free_header(sapi_header);
|
||||
|
||||
return 0;
|
||||
return SAPI_HEADER_ADD;
|
||||
}
|
||||
|
||||
static int
|
||||
|
||||
@@ -340,9 +340,7 @@ static int sapi_apache_header_handler(sapi_header_struct *sapi_header, sapi_head
|
||||
|
||||
*p = ':'; /* a well behaved header handler shouldn't change its original arguments */
|
||||
|
||||
efree(sapi_header->header);
|
||||
|
||||
return 0; /* don't use the default SAPI mechanism, Apache duplicates this functionality */
|
||||
return SAPI_HEADER_ADD;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user