mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
someone missed code requiring ssl
This commit is contained in:
parent
8dbcb26fd0
commit
2c6dca5a6e
1 changed files with 2 additions and 0 deletions
|
@ -413,12 +413,14 @@ php_stream * php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, char *path, ch
|
||||||
php_stream_context_set(datastream, context);
|
php_stream_context_set(datastream, context);
|
||||||
php_stream_notify_progress_init(context, 0, file_size);
|
php_stream_notify_progress_init(context, 0, file_size);
|
||||||
|
|
||||||
|
#if HAVE_OPENSSL_EXT
|
||||||
if (use_ssl_on_data && php_stream_sock_ssl_activate_with_method(datastream, 1, SSLv23_method()) == FAILURE) {
|
if (use_ssl_on_data && php_stream_sock_ssl_activate_with_method(datastream, 1, SSLv23_method()) == FAILURE) {
|
||||||
php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Unable to activate SSL mode");
|
php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Unable to activate SSL mode");
|
||||||
php_stream_close(datastream);
|
php_stream_close(datastream);
|
||||||
datastream = NULL;
|
datastream = NULL;
|
||||||
goto errexit;
|
goto errexit;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
php_url_free(resource);
|
php_url_free(resource);
|
||||||
return datastream;
|
return datastream;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue