Bug #77151 [Opn->Csd]: ftp_close(): SSL_read on shutdown

From: Date: Tue, 20 Nov 2018 10:21:05 +0000
Subject: Bug #77151 [Opn->Csd]: ftp_close(): SSL_read on shutdown
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218060@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77151&edit=1

 ID:                 77151
 Updated by:         remi@php.net
 Reported by:        ja at vojta-tuma dot cz
 Summary:            ftp_close(): SSL_read on shutdown
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            FTP related
 Operating System:   irrevelant
 PHP Version:        7.1.24
 Block user comment: N
 Private report:     N

 New Comment:

Automatic comment on behalf of remi@remirepo.net
Revision: http://git.php.net/?p=php-src.git;a=commit;h=d9afc2f662587a042db38c8f0df98a27bfc89d29
Log: Fix #77151 ftp_close(): SSL_read on shutdown


Previous Comments:
------------------------------------------------------------------------
[2018-11-19 12:10:21] jsoumelidis at gmail dot com

Also affects ftp_put()

------------------------------------------------------------------------
[2018-11-15 06:20:09] remi@php.net

Also get reports abnout this warning:

     PHP Warning:  ftp_close(): SSL_read on shutdown: Success (0) in import.php on line 62

Also see my comments on the https://github.com/php/php-src/commit/bb4a2e8bb7fc80fa5b3725508bcc8fea525f059b

------------------------------------------------------------------------
[2018-11-14 22:25:10] manuel-php at mausz dot at

I can't reproduce this here. But my setup is fairly limited and I'm running the latest
releases only.

What's the full error message? "SSL_read on shutdown" is truncated. There should be a
readable system/openssl error message + corresponding error number.

------------------------------------------------------------------------
[2018-11-14 22:12:28] cmb@php.net

> The respective code[1] looks fishy.

Likely a false alarm, see
<https://github.com/php/php-src/pull/3575/files#r233561470>.

------------------------------------------------------------------------
[2018-11-14 15:04:22] cmb@php.net

The respective code[1] looks fishy.  Shouldn't the
php_error_docref() be inside the if statement?

[1] <https://github.com/php/php-src/blob/php-7.2.12/ext/ftp/ftp.c#L1931-L1934>

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=77151


--
Edit this bug report at https://bugs.php.net/bug.php?id=77151&edit=1


Thread (9 messages)

« previous php.bugs (#218060) next »