mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-10-17 01:16:33 +00:00
Skip test on PHP 8.0 and later due to error
This commit is contained in:
@@ -3300,6 +3300,12 @@ class CurlTest extends \PHPUnit\Framework\TestCase
|
||||
$this->markTestSkipped();
|
||||
}
|
||||
|
||||
// Skip this test on 8.0 and later:
|
||||
// "ValueError: curl_setopt(): cURL option must not contain any null bytes"
|
||||
if (version_compare(PHP_VERSION, '8.0.0', '>=')) {
|
||||
$this->markTestSkipped();
|
||||
}
|
||||
|
||||
$option = CURLOPT_ENCODING;
|
||||
$value = 'gzip';
|
||||
$null = chr(0);
|
||||
|
||||
Reference in New Issue
Block a user