From 6e1032c30df97c4e01b60fb55c2075c78bb89207 Mon Sep 17 00:00:00 2001 From: Stefan Roehrich Date: Wed, 10 Sep 2003 08:49:46 +0000 Subject: [PATCH] MFH: Fix for bug #23488 zlib.output_compression overrides vary header. It was already fixed for ob_gzhandler (#24827). --- NEWS | 1 + main/SAPI.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 7493a45db4..c4ec1c3663 100644 --- a/NEWS +++ b/NEWS @@ -7,6 +7,7 @@ PHP 4 NEWS - Fixed crash bug when non-existing save/serializer handler was used. (Jani) - Fixed memory leak in gethostbynamel() if an error occurs. (Sara) - Fixed FastCGI being unable to bind to a specific IP. (Sascha) +- Fixed bug #23488 (zlib.output_compression overrides Vary header). (Stefan) - Fixed bug #25429 (fix copying of stdin using copy() function). (Ilia) - Fixed bug #25424 (ext/informix: lvarchar not supported in win32). (Jani) - Fixed bug #25404 (ext/pgsql: open transactions not closed when script ends). diff --git a/main/SAPI.c b/main/SAPI.c index ab9f3916d3..94e4a89883 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -721,7 +721,7 @@ SAPI_API int sapi_send_headers(TSRMLS_D) if (len <= 0 || sapi_add_header(buf, len, 1) == FAILURE) { return FAILURE; } - if (sapi_add_header("Vary: Accept-Encoding", sizeof("Vary: Accept-Encoding") - 1, 1) == FAILURE) { + if (sapi_add_header_ex("Vary: Accept-Encoding", sizeof("Vary: Accept-Encoding") - 1, 1, 0 TSRMLS_CC) == FAILURE) { return FAILURE; } } -- 2.50.1