Skip to content

Commit

Permalink
fix curl resumable test
Browse files Browse the repository at this point in the history
  • Loading branch information
DrDet committed Aug 10, 2023
1 parent 6ed5a16 commit 9485d7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/python/tests/curl/php/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function test_curl($curl_resumable = false) {
ob_start();

fwrite(STDERR, "start_curl_query\n");
$output = $curl_resumable ? curl_exec_concurrently($ch, $timeout_s) : curl_exec($ch);
$output = $curl_resumable ? curl_exec_concurrently($ch, $timeout_s ?? -1) : curl_exec($ch);
fwrite(STDERR, "end_curl_query\n");
curl_close($ch);

Expand All @@ -101,7 +101,7 @@ function test_curl_reuse_handle($curl_resumable = false) {
if (!$curl_resumable) {
curl_setopt($ch, CURLOPT_TIMEOUT_MS, $timeout_s * 1000);
}
$output1 = $curl_resumable ? curl_exec_concurrently($ch, $timeout_s) : curl_exec($ch);
$output1 = $curl_resumable ? curl_exec_concurrently($ch, $timeout_s ?? -1) : curl_exec($ch);
if (!$curl_resumable) {
curl_setopt($ch, CURLOPT_TIMEOUT_MS, 0);
}
Expand Down

0 comments on commit 9485d7d

Please sign in to comment.