From: Tim Düsterhus Date: Wed, 11 May 2022 14:16:50 +0000 (+0200) Subject: Deprecate RemoteFile::supportsSSL() and RemoteFile::disableSSL() X-Git-Tag: 6.0.0_Alpha_1~1309^2~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6990c677c08b375bb7837c0f80a63aa95abea45c;p=GitHub%2FWoltLab%2FWCF.git Deprecate RemoteFile::supportsSSL() and RemoteFile::disableSSL() --- diff --git a/wcfsetup/install/files/lib/system/io/RemoteFile.class.php b/wcfsetup/install/files/lib/system/io/RemoteFile.class.php index 63fb68718e..d728986920 100644 --- a/wcfsetup/install/files/lib/system/io/RemoteFile.class.php +++ b/wcfsetup/install/files/lib/system/io/RemoteFile.class.php @@ -158,9 +158,7 @@ class RemoteFile extends File } /** - * Returns true if PHP supports SSL/TLS. - * - * @return bool + * @deprecated 5.6 This method is effectively returning bogus data, because the majority of TLS communication uses Guzzle/cURL. */ public static function supportsSSL() { @@ -180,10 +178,9 @@ class RemoteFile extends File } /** - * Disables SSL/TLS support on runtime regardless if PHP is theoretically capable of it. + * @deprecated 5.6 See RemoteFile::supportsSSL(). The implementation is a noop. */ public static function disableSSL() { - static::$hasSSLSupport = false; } }