@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

PHP 8.5: PHPMailer: Replace deprecated socket_set_timeout()

Summary:
Drift away further from upstream by fixing a PHP 8.5 deprecation warning.

* https://php.watch/versions/8.5/socket_set_timeout-deprecated
* https://www.php.net/manual/en/function.socket-set-timeout.php

In an ideal world we'd tackle T16356 instead.

Closes T16354

Test Plan: None; it's a trivial replacement.

Reviewers: O1 Blessed Committers, mainframe98

Reviewed By: O1 Blessed Committers, mainframe98

Subscribers: mainframe98, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T16354

Differential Revision: https://we.phorge.it/D26520

+1 -1
+1 -1
externals/phpmailer/class.smtp.php
··· 144 144 // SMTP server can take longer to respond, give longer timeout for first read 145 145 // Windows does not have support for this timeout function 146 146 if(substr(PHP_OS, 0, 3) != "WIN") 147 - socket_set_timeout($this->smtp_conn, $tval, 0); 147 + stream_set_timeout($this->smtp_conn, $tval, 0); 148 148 149 149 // get any announcement 150 150 $announce = $this->get_lines();