diff options
author | Derick Rethans <derick@php.net> | 2001-10-27 18:22:56 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2001-10-27 18:22:56 +0000 |
commit | 10fe28c8ab70860c94fe0e21d43eac9fb0144089 (patch) | |
tree | d8827362caf3eee5e16f6725a0b8355842c264af | |
parent | 6a5bcfef8dd182438fe91a9e1f332a46e2c38fa9 (diff) | |
download | php-git-10fe28c8ab70860c94fe0e21d43eac9fb0144089.tar.gz |
- fix crash bug
-rw-r--r-- | ext/zlib/zlib.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; } |