summaryrefslogtreecommitdiff
path: root/ext/soap/php_sdl.c
diff options
context:
space:
mode:
authorPatrick Allaert <patrickallaert@php.net>2021-02-26 18:33:48 +0100
committerGeorge Peter Banyard <girgias@php.net>2021-02-27 13:23:00 +0000
commit6f38a53940f02891ce8367ddf66b4a344765211f (patch)
tree1b429f29453d8d626946452dc55b824f2d6f8683 /ext/soap/php_sdl.c
parentbfd3fda0f4d25dc70580ebcd193ef3b141524b62 (diff)
downloadphp-git-6f38a53940f02891ce8367ddf66b4a344765211f.tar.gz
Remove useless conditional #ifdef
Closes GH-6737 Signed-off-by: George Peter Banyard <girgias@php.net>
Diffstat (limited to 'ext/soap/php_sdl.c')
-rw-r--r--ext/soap/php_sdl.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c
index 1f939f0cef..11c030afdd 100644
--- a/ext/soap/php_sdl.c
+++ b/ext/soap/php_sdl.c
@@ -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);