Skip to content

Commit fcb7b72

Browse files
Removed curl close
1 parent b25041c commit fcb7b72

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

src/Magento/FunctionalTestingFramework/DataTransport/Protocol/CurlTransport.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,6 @@ public function read(?string $successRegex = null, ?string $returnRegex = null,
189189
*/
190190
public function close()
191191
{
192-
if (version_compare(PHP_VERSION, '8.0') < 0) {
193-
// this function no longer has an effect in PHP 8.0, but it's required in earlier versions
194-
curl_close($this->getResource());
195-
}
196192
$this->resource = null;
197193
}
198194

src/Magento/FunctionalTestingFramework/Extension/TestContextExtension.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,6 @@ public function testStart(\Codeception\Event\TestEvent $e)
107107
CURLOPT_URL => getenv('MAGENTO_BASE_URL') . "/test.php?test=" . $this->currentTest,
108108
]);
109109
curl_exec($cURLConnection);
110-
if (version_compare(PHP_VERSION, '8.0') < 0) {
111-
// this function no longer has an effect in PHP 8.0, but it's required in earlier versions
112-
curl_close($cURLConnection);
113-
}
114110
}
115111

116112
PersistedObjectHandler::getInstance()->clearHookObjects();

0 commit comments

Comments
 (0)