From 10fe28c8ab70860c94fe0e21d43eac9fb0144089 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Sat, 27 Oct 2001 18:22:56 +0000 Subject: - fix crash bug --- ext/zlib/zlib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext/zlib/zlib.c') 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; } -- cgit v1.2.1