summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2004-02-11 16:12:31 +0000
committerDmitry Stogov <dmitry@php.net>2004-02-11 16:12:31 +0000
commitf46638ae28eccc8ce4fc7dbc85d85150b5f14ccb (patch)
tree99bd5bf34dfc22c639cade86543166c4ac0cbe77
parentb70f942189126746b4cd9fa5f27c050a277f3086 (diff)
downloadphp-git-f46638ae28eccc8ce4fc7dbc85d85150b5f14ccb.tar.gz
Cache files access rights were changed.
-rw-r--r--ext/soap/php_sdl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c
index 48641d41eb..29c96deef6 100644
--- a/ext/soap/php_sdl.c
+++ b/ext/soap/php_sdl.c
@@ -1580,7 +1580,11 @@ static void add_sdl_to_cache(const char *fn, const char *uri, time_t t, sdlPtr s
HashTable tmp_bindings;
HashTable tmp_functions;
+#ifdef ZEND_WIN32
f = open(fn,O_CREAT|O_WRONLY|O_EXCL|O_BINARY,S_IREAD|S_IWRITE);
+#else
+ f = open(fn,O_CREAT|O_WRONLY|O_EXCL|O_BINARY,S_IREAD|S_IWRITE|S_IROTH|S_IWOTH|S_IRGRP|S_IWGRP);
+#endif
if (f < 0) {return;}
zend_hash_init(&tmp_types, 0, NULL, NULL, 0);