]> granicus.if.org Git - php/commitdiff
Remove useless conditional #ifdef
authorPatrick Allaert <patrickallaert@php.net>
Fri, 26 Feb 2021 17:33:48 +0000 (18:33 +0100)
committerGeorge Peter Banyard <girgias@php.net>
Sat, 27 Feb 2021 13:23:00 +0000 (13:23 +0000)
Closes GH-6737

Signed-off-by: George Peter Banyard <girgias@php.net>
ext/soap/php_sdl.c

index 1f939f0cef223550e06b85a963cd05f36d81af8a..11c030afdd129a1405d54cd87e3ca22aa21371bc 100644 (file)
@@ -2117,11 +2117,8 @@ 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);
-#endif
+
        if (f < 0) {return;}
 
        zend_hash_init(&tmp_types, 0, NULL, NULL, 0);