From: Derick Rethans Date: Sat, 27 Oct 2001 18:22:56 +0000 (+0000) Subject: - fix crash bug X-Git-Tag: ChangeLog~512 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10fe28c8ab70860c94fe0e21d43eac9fb0144089;p=php - fix crash bug --- diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index 292ca1e781..bd7d6e5168 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -137,8 +137,7 @@ static PHP_INI_MH(OnUpdate_zlib_output_compression) char *ini_value; ini_value = php_ini_string("output_handler", sizeof("output_handler"), 0); - - if (new_value != NULL && strlen(ini_value) != 0) { + if (ini_value != NULL && new_value != NULL && strlen(ini_value) != 0) { php_error(E_CORE_ERROR,"Cannot use both zlib.output_compression and output_handler together!!"); return FAILURE; }