summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/ftp_fopen_wrapper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/ftp_fopen_wrapper.c b/ext/standard/ftp_fopen_wrapper.c
index e9f75b55c2..f21f2fc0be 100644
--- a/ext/standard/ftp_fopen_wrapper.c
+++ b/ext/standard/ftp_fopen_wrapper.c
@@ -377,7 +377,7 @@ php_stream * php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, char *path, ch
char ip[sizeof("123.123.123.123")];
unsigned short portno;
char *hoststart = NULL;
- int result, use_ssl, use_ssl_on_data=0;
+ int result = 0, use_ssl, use_ssl_on_data=0;
php_stream *reuseid=NULL;
size_t file_size = 0;
zval **tmpzval;
@@ -742,7 +742,7 @@ static int php_stream_ftp_url_stat(php_stream_wrapper *wrapper, char *url, php_s
goto stat_errexit;
}
- sscanf(tmp_line + 4, "%d", &(ssb->sb.st_size));
+ sscanf(tmp_line + 4, "%d", (int *)&(ssb->sb.st_size));
php_stream_close(stream);
return 0;