From 9cc24bad1e34788242d5a79702f064160e6810c9 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Fri, 8 Nov 2002 03:02:51 +0000 Subject: [PATCH] Fixed compile warning when compiling without openssl support. --- ext/standard/ftp_fopen_wrapper.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ext/standard/ftp_fopen_wrapper.c b/ext/standard/ftp_fopen_wrapper.c index d961a4b1e1..3145e83f0a 100644 --- a/ext/standard/ftp_fopen_wrapper.c +++ b/ext/standard/ftp_fopen_wrapper.c @@ -135,14 +135,18 @@ php_stream_wrapper php_stream_ftp_wrapper = { */ php_stream * php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) { - php_stream *stream=NULL, *datastream=NULL, *reuseid=NULL; + php_stream *stream=NULL, *datastream=NULL; php_url *resource=NULL; char tmp_line[512]; char ip[sizeof("123.123.123.123")]; unsigned short portno; char *scratch; int result; - int i, use_ssl, use_ssl_on_data=0; + int i, use_ssl; +#if HAVE_OPENSSL_EXT + int use_ssl_on_data=0; + php_stream *reuseid=NULL; +#endif char *tpath, *ttpath, *hoststart=NULL; size_t file_size = 0; -- 2.50.1