summaryrefslogtreecommitdiff
path: root/ext/zlib/zlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zlib/zlib.c')
-rw-r--r--ext/zlib/zlib.c3
1 files changed, 2 insertions, 1 deletions
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;
}