]> granicus.if.org Git - php/commitdiff
- fix crash bug
authorDerick Rethans <derick@php.net>
Sat, 27 Oct 2001 18:22:56 +0000 (18:22 +0000)
committerDerick Rethans <derick@php.net>
Sat, 27 Oct 2001 18:22:56 +0000 (18:22 +0000)
ext/zlib/zlib.c

index 292ca1e781aa04b68511e64a877aef7b6a4ae4a4..bd7d6e5168dc35e689dcecae7b8b98ef51d8eed5 100644 (file)
@@ -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;
        }