diff options
| author | Nikita Popov <nikic@php.net> | 2013-12-30 13:54:58 +0100 |
|---|---|---|
| committer | Nikita Popov <nikic@php.net> | 2013-12-30 13:54:58 +0100 |
| commit | c7ee97eea0c5ab23835f1fc1523c7c3e118d29d0 (patch) | |
| tree | ad7c1240575403259945e51e6e46b2a750cf1d51 /ext/ftp/ftp.c | |
| parent | ed5be4f7ad9255f13f0e1263e0b88181dc3c31d8 (diff) | |
| parent | 3b6afb1bd63ef92f9914867f04bedeea90e21789 (diff) | |
| download | php-git-c7ee97eea0c5ab23835f1fc1523c7c3e118d29d0.tar.gz | |
Merge branch 'PHP-5.4' into PHP-5.5
Diffstat (limited to 'ext/ftp/ftp.c')
| -rw-r--r-- | ext/ftp/ftp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 30b3ba6285..98ab0c8552 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -178,6 +178,10 @@ ftp_close(ftpbuf_t *ftp) if (ftp->data) { data_close(ftp, ftp->data); } + if (ftp->stream && ftp->closestream) { + TSRMLS_FETCH(); + php_stream_close(ftp->stream); + } if (ftp->fd != -1) { #if HAVE_OPENSSL_EXT if (ftp->ssl_active) { |
