Bug #77151 [Com]: ftp_close(): SSL_read on shutdown

From: Date: Wed, 14 Nov 2018 22:25:10 +0000
Subject: Bug #77151 [Com]: ftp_close(): SSL_read on shutdown
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217961@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 Comment by: manuel-php at mausz dot at Reported by: ja at vojta-tuma dot cz Summary: ftp_close(): SSL_read on shutdown Status: Open Type: Bug Package: FTP related Operating System: debian PHP Version: 7.2.12 Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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> ------------------------------------------------------------------------ [2018-11-14 12:29:40] ja at vojta-tuma dot cz Description: ------------ ftp_close() function returns warning while trying to close SSL connection. Exact stdout: ftp_close(): SSL_read on shutdown I run following testscript with latest docker php7-cli image. docker run --rm -v ./code/:/code/ php:7-cli php /code/test.php Test script: --------------- <?php $ftp_conn = ftp_ssl_connect('server'); $ftp_login = ftp_login($ftp_conn, 'user', 'pass'); echo ftp_pwd($ftp_conn); ftp_close($ftp_conn); Expected result: ---------------- print working directory without any error Actual result: -------------- print working directory and warning message on ftp close. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77151&edit=1

« previous php.bugs (#217961) next »