[php-src] PHP-8.5: Merge branch 'PHP-8.4' into PHP-8.5

From: Date: Mon, 21 Sep 2026 20:29:56 +0000
Subject: [php-src] PHP-8.5: Merge branch 'PHP-8.4' into PHP-8.5
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-141350@lists.php.net to get a copy of this message
Author: ndossche (ndossche) Date: 2026-09-21T22:29:43+02:00 Commit: https://github.com/php/php-src/commit/b48597db55a6d73df16a9bba1277290ccf875d68 Raw diff: https://github.com/php/php-src/commit/b48597db55a6d73df16a9bba1277290ccf875d68.diff Merge branch 'PHP-8.4' into PHP-8.5 * PHP-8.4: Fix GH-23619: ext/ftp: cryptic error on servers that don't support TLS session resumption on data connection Changed paths: M NEWS M ext/ftp/ftp.c Diff: diff --git a/NEWS b/NEWS index ae13afd8c350..b57861f46564 100644 --- a/NEWS +++ b/NEWS @@ -24,6 +24,10 @@ PHP NEWS when a fragment is parsed with an xlink, xml or xmlns context element. (Ilia Alshanetsky) +- FTP: + . Fixed bug GH-23619 (cryptic error on servers that don't support TLS + session resumption on data connection). (ndossche) + - Intl: . Fixed cloning IntlDateFormatter and MessageFormatter losing PHP-side state such as dateType, timeType, calendar and the message pattern. diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 88f7431cc32f..dd5580c08a53 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -1776,7 +1776,10 @@ static databuf_t* data_accept(databuf_t *data, ftpbuf_t *ftp) /* get the session from the control connection so we can re-use it */ session = ftp->last_ssl_session; if (session == NULL) { - php_error_docref(NULL, E_WARNING, "data_accept: failed to retrieve the existing SSL session"); + php_error_docref(NULL, E_WARNING, "data_accept: failed to retrieve the existing SSL session from the control connection. " + "The server does not support TLS session resumption on the data connection, " + "which is necessary to protect against session data stealing. " + "PHP does not support such configuration."); SSL_free(data->ssl_handle); return 0; }

« previous php.cvs (#141350) next »