From 160267361178c4c6ade16a656428c0b26ceb400d Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Wed, 13 Aug 2025 15:40:35 +0100 Subject: [PATCH] Remove curl_close() as it does nothing and is deprecated in PHP 8.5 --- lib/WebDriver/Service/CurlService.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/WebDriver/Service/CurlService.php b/lib/WebDriver/Service/CurlService.php index 254b8e00..9cfdbbff 100755 --- a/lib/WebDriver/Service/CurlService.php +++ b/lib/WebDriver/Service/CurlService.php @@ -114,8 +114,6 @@ public function execute($requestMethod, $url, $parameters = null, $extraOptions CURLE_GOT_NOTHING !== ($errno = curl_errno($curl)) && $error = curl_error($curl) ) { - curl_close($curl); - $e = new CurlExecException( sprintf( "Curl error thrown for http %s to %s%s\n\n%s", @@ -132,8 +130,6 @@ public function execute($requestMethod, $url, $parameters = null, $extraOptions throw $e; } - curl_close($curl); - return array($rawResult, $info); } }