php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #54431
Patch 54431.patch revision 2016-07-21 08:47 UTC by vhu at iki dot fi

Patch 54431.patch for Directory function related Bug #54431

Patch version 2016-07-21 08:47 UTC

Return to Bug #54431 | Download this patch
Patch Revisions:

Developer: vhu@iki.fi

--- ext/standard/ftp_fopen_wrapper.c	2016-07-21 11:35:10.000000000 +0300
+++ ext/standard/ftp_fopen_wrapper.c~	2016-07-21 11:08:39.000000000 +0300
@@ -737,9 +737,9 @@
 
 	php_stream_context_set(datastream, context);
 
-	if (use_ssl_on_data && (php_stream_xport_crypto_setup(stream,
+	if (use_ssl_on_data && (php_stream_xport_crypto_setup(datastream,
 			STREAM_CRYPTO_METHOD_SSLv23_CLIENT, NULL) < 0 ||
-			php_stream_xport_crypto_enable(stream, 1) < 0)) {
+			php_stream_xport_crypto_enable(datastream, 1) < 0)) {
 
 		php_stream_wrapper_log_error(wrapper, options, "Unable to activate SSL mode");
 		php_stream_close(datastream);
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 22:01:26 2024 UTC