From 67212699e304b920de4f5b75796ff51a13d9c67c Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Thu, 4 May 2023 06:25:26 -0700 Subject: [PATCH] Revert "Extract cacert from Phar for cURL" --- php/utils.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/php/utils.php b/php/utils.php index 618d514561..9b2a12798b 100644 --- a/php/utils.php +++ b/php/utils.php @@ -762,12 +762,6 @@ function http_request( $method, $url, $data = null, $headers = [], $options = [] $options['verify'] = ! empty( ini_get( 'curl.cainfo' ) ) ? ini_get( 'curl.cainfo' ) : true; } - // The certificate location provided by default by the Requests library could point to a file inside a Phar archive. - // This is not supported by cURL, so we need to extract the file to a temporary location. - if ( 0 === strpos( $options['verify'], PHAR_STREAM_PREFIX ) ) { - $options['verify'] = extract_from_phar( $options['verify'] ); - } - try { try { return Requests::request( $url, $headers, $data, $method, $options );