diff options
author | Andi Gutmans <andi@php.net> | 2000-06-26 18:19:35 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2000-06-26 18:19:35 +0000 |
commit | 229b1708851645810b56cfe410ead8ba59a0083e (patch) | |
tree | d0cab1d620ee9a6ace8e5474f418012c3db991a3 /ext/zlib | |
parent | 2c94141b122827e1b8c7b4ea6e272905e0bdef10 (diff) | |
download | php-git-229b1708851645810b56cfe410ead8ba59a0083e.tar.gz |
- Don't depend on USE_PATH being equal to 1. Use #define value
Diffstat (limited to 'ext/zlib')
-rw-r--r-- | ext/zlib/zlib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index b946dfb71b..69b2484d0d 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -154,7 +154,7 @@ static gzFile php_gzopen_wrapper(char *path, char *mode, int options) { FILE *f; - f = php_fopen_wrapper(path, mode, options & ~IGNORE_URL, NULL, NULL, NULL); + f = php_fopen_wrapper(path, mode, options, NULL, NULL, NULL); if (!f) { return NULL; @@ -184,7 +184,7 @@ PHP_FUNCTION(gzfile) { WRONG_PARAM_COUNT; } convert_to_long_ex(arg2); - use_include_path = (*arg2)->value.lval; + use_include_path = (*arg2)->value.lval?USE_PATH:0; break; default: WRONG_PARAM_COUNT; @@ -238,7 +238,7 @@ PHP_FUNCTION(gzopen) { WRONG_PARAM_COUNT; } convert_to_long_ex(arg3); - use_include_path = (*arg3)->value.lval; + use_include_path = (*arg3)->value.lval?USE_PATH:0; break; default: WRONG_PARAM_COUNT; @@ -542,7 +542,7 @@ PHP_FUNCTION(readgzfile) { WRONG_PARAM_COUNT; } convert_to_long_ex(arg2); - use_include_path = (*arg2)->value.lval; + use_include_path = (*arg2)->value.lval?USE_PATH:0; break; default: WRONG_PARAM_COUNT; |