diff options
Diffstat (limited to 'ext/soap/php_sdl.c')
-rw-r--r-- | ext/soap/php_sdl.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index a271ca8fcd..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); @@ -3170,8 +3167,8 @@ sdlPtr get_sdl(zval *this_ptr, char *uri, zend_long cache_wsdl) smart_str headers = {0}; char* key = NULL; time_t t = time(0); - zend_bool has_proxy_authorization = 0; - zend_bool has_authorization = 0; + bool has_proxy_authorization = 0; + bool has_authorization = 0; ZVAL_UNDEF(&orig_context); ZVAL_UNDEF(&new_context); |