From: Rui Hirokawa Date: Fri, 23 Nov 2001 02:53:16 +0000 (+0000) Subject: restriction is relaxed because output handler couldn't be used even if zlib.output_co... X-Git-Tag: ChangeLog~262 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=506eec88b439982994b290f171a75a6fddb91828;p=php restriction is relaxed because output handler couldn't be used even if zlib.output_compression is set to off. --- diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index bd7d6e5168..54f5128894 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -137,7 +137,8 @@ static PHP_INI_MH(OnUpdate_zlib_output_compression) char *ini_value; ini_value = php_ini_string("output_handler", sizeof("output_handler"), 0); - if (ini_value != NULL && new_value != NULL && strlen(ini_value) != 0) { + if (ini_value != NULL && strlen(ini_value) != 0 && + new_value != NULL && strlen(new_value) != 0 ) { php_error(E_CORE_ERROR,"Cannot use both zlib.output_compression and output_handler together!!"); return FAILURE; }