From c59538b64bd3c23c420167216d267bcb423db27a Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 11 Jun 2015 12:32:41 +0000 Subject: [PATCH] * API/VFS: download as zip; increase the time limit on a small amount of files, as they may hold a big amount of data --- api/src/Vfs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/Vfs.php b/api/src/Vfs.php index 8b7f4c5c14..aecfaa274e 100644 --- a/api/src/Vfs.php +++ b/api/src/Vfs.php @@ -1502,8 +1502,8 @@ class Vfs extends Vfs\StreamWrapper // We need to remove them _after_ we're done $tempfiles = array(); - // Give 1 second per file - set_time_limit(count($files)); + // Give 1 second per file, but try to allow more time for big files when amount of files is low + set_time_limit((count($files)<=9?10:count($files))); // Add files to archive foreach($files as &$addfile)