cvs: php4 /ext/zlib zlib.c
| From: | Andi Gutmans | Date: | Mon, 26 Jun 2000 18:19:35 +0000 |
| Subject: | cvs: php4 /ext/zlib zlib.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-494@lists.php.net to get a copy of this message | ||
andi Mon Jun 26 11:19:35 2000 EDT
Modified files:
/php4/ext/zlib zlib.c
Log:
- Don't depend on USE_PATH being equal to 1. Use #define value
Index: php4/ext/zlib/zlib.c
diff -u php4/ext/zlib/zlib.c:1.49 php4/ext/zlib/zlib.c:1.50
--- php4/ext/zlib/zlib.c:1.49 Mon Jun 26 10:40:24 2000
+++ php4/ext/zlib/zlib.c Mon Jun 26 11:19:35 2000
@@ -16,7 +16,7 @@
| Stefan Röhrich <sr@linux.de> |
+----------------------------------------------------------------------+
*/
-/* $Id: zlib.c,v 1.49 2000/06/26 17:40:24 zeev Exp $ */
+/* $Id: zlib.c,v 1.50 2000/06/26 18:19:35 andi Exp $ */
#define IS_EXT_MODULE
#include "php.h"
@@ -154,7 +154,7 @@
{
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 @@
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 @@
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 @@
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;