mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-16 21:36:33 +00:00
Fixed test CurlTest::testUserAgent where PHP_VERSION contains regex special chars (e.g. 5.6.9-0+deb8u1)
This commit is contained in:
@@ -82,7 +82,7 @@ class CurlTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
public function testUserAgent()
|
||||
{
|
||||
$php_version = 'PHP\/' . PHP_VERSION;
|
||||
$php_version = preg_replace('/([\.\+\?\*\(\)\[\]\^\$\/])/', '\\\\\1', 'PHP/' . PHP_VERSION);
|
||||
$curl_version = curl_version();
|
||||
$curl_version = 'curl\/' . $curl_version['version'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user