Skip to content

Commit 65abdb5

Browse files
vhuknikic
authored andcommitted
Fix for bug #54431
1 parent 4fc1bfa commit 65abdb5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ PHP NEWS
4848
. Fixed bug #72330 (CSV fields incorrectly split if escape char followed by
4949
UTF chars). (cmb)
5050

51+
- Streams:
52+
. Fixed bug #41021 (Problems with the ftps wrapper). (vhuk)
53+
. Fixed bug #54431 (opendir() does not work with ftps:// wrapper). (vhuk)
54+
5155
- SPL:
5256
. Fixed bug #72122 (IteratorIterator breaks '@' error suppression). (kinglozzer)
5357
. Fixed bug #72646 (SplFileObject::getCsvControl does not return the escape

ext/standard/ftp_fopen_wrapper.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,9 +746,9 @@ php_stream * php_stream_ftp_opendir(php_stream_wrapper *wrapper, const char *pat
746746

747747
php_stream_context_set(datastream, context);
748748

749-
if (use_ssl_on_data && (php_stream_xport_crypto_setup(stream,
749+
if (use_ssl_on_data && (php_stream_xport_crypto_setup(datastream,
750750
STREAM_CRYPTO_METHOD_SSLv23_CLIENT, NULL TSRMLS_CC) < 0 ||
751-
php_stream_xport_crypto_enable(stream, 1 TSRMLS_CC) < 0)) {
751+
php_stream_xport_crypto_enable(datastream, 1 TSRMLS_CC) < 0)) {
752752

753753
php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Unable to activate SSL mode");
754754
php_stream_close(datastream);

0 commit comments

Comments
 (0)