@@ 10252-10255 (lines=4) @@ | ||
10249 | { |
|
10250 | $curl = $curl['version']; |
|
10251 | } |
|
10252 | elseif (substr($curl, 0, 5) === 'curl/') |
|
10253 | { |
|
10254 | $curl = substr($curl, 5, strcspn($curl, "\x09\x0A\x0B\x0C\x0D", 5)); |
|
10255 | } |
|
10256 | elseif (substr($curl, 0, 8) === 'libcurl/') |
|
10257 | { |
|
10258 | $curl = substr($curl, 8, strcspn($curl, "\x09\x0A\x0B\x0C\x0D", 8)); |
|
@@ 10256-10259 (lines=4) @@ | ||
10253 | { |
|
10254 | $curl = substr($curl, 5, strcspn($curl, "\x09\x0A\x0B\x0C\x0D", 5)); |
|
10255 | } |
|
10256 | elseif (substr($curl, 0, 8) === 'libcurl/') |
|
10257 | { |
|
10258 | $curl = substr($curl, 8, strcspn($curl, "\x09\x0A\x0B\x0C\x0D", 8)); |
|
10259 | } |
|
10260 | else |
|
10261 | { |
|
10262 | $curl = 0; |