From: Ilia Alshanetsky Date: Fri, 8 Nov 2002 03:02:51 +0000 (+0000) Subject: Fixed compile warning when compiling without openssl support. X-Git-Tag: php-4.3.0RC1~184 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9cc24bad1e34788242d5a79702f064160e6810c9;p=php Fixed compile warning when compiling without openssl support. --- 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;