We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9520a43 + 811d6ef commit d2685d3Copy full SHA for d2685d3
lib/plugins/extension/Installer.php
@@ -293,7 +293,7 @@ public function downloadArchive($url)
293
294
// large downloads may take a while on slow connections, so we try to extend the timeout to 4 minutes
295
// 4 minutes was chosen, because HTTP servers and proxies often have a 5 minute timeout
296
- if (php_sapi_name() === 'cli' || @set_time_limit(60 * 4)) {
+ if (PHP_SAPI === 'cli' || @set_time_limit(60 * 4)) {
297
$http->timeout = 60 * 4 - 5; // nearly 4 minutes
298
} else {
299
$http->timeout = 25; // max. 25 sec (a bit less than default execution time)
0 commit comments