summaryrefslogtreecommitdiff
path: root/ext/curl/tests/bug64267.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/curl/tests/bug64267.phpt')
-rw-r--r--ext/curl/tests/bug64267.phpt5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/curl/tests/bug64267.phpt b/ext/curl/tests/bug64267.phpt
index 1b115588ff..ca1fe4b368 100644
--- a/ext/curl/tests/bug64267.phpt
+++ b/ext/curl/tests/bug64267.phpt
@@ -2,6 +2,7 @@
Bug #64267 (CURLOPT_INFILE doesn't allow reset)
--SKIPIF--
<?php
+if (getenv("SKIP_ONLINE_TESTS")) die("skip online test");
extension_loaded("curl") or die("skip need ext/curl");
?>
--FILE--
@@ -15,7 +16,9 @@ var_dump(curl_setopt_array($c, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_UPLOAD => true,
CURLOPT_INFILE => $f,
- CURLOPT_INFILESIZE => filesize(__FILE__)
+ CURLOPT_INFILESIZE => filesize(__FILE__),
+ CURLOPT_CONNECTTIMEOUT => 1,
+ CURLOPT_TIMEOUT => 1,
]));
fclose($f);
var_dump(curl_setopt_array($c, [