]> granicus.if.org Git - php/commitdiff
Cache files access rights were changed.
authorDmitry Stogov <dmitry@php.net>
Wed, 11 Feb 2004 16:12:31 +0000 (16:12 +0000)
committerDmitry Stogov <dmitry@php.net>
Wed, 11 Feb 2004 16:12:31 +0000 (16:12 +0000)
ext/soap/php_sdl.c

index 48641d41eb374104a349075d8f441e4ee1223562..29c96deef619c534e248a632465e0297745a7750 100644 (file)
@@ -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);