From 6990c677c08b375bb7837c0f80a63aa95abea45c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 11 May 2022 16:16:50 +0200 Subject: [PATCH] Deprecate RemoteFile::supportsSSL() and RemoteFile::disableSSL() --- wcfsetup/install/files/lib/system/io/RemoteFile.class.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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; } } -- 2.20.1