Skip to content

Commit

Permalink
Check disable_functions before set_time_limit
Browse files Browse the repository at this point in the history
  • Loading branch information
dhemeier committed Sep 24, 2018
1 parent 4feee54 commit 52685b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Http/Response.php
Expand Up @@ -2708,7 +2708,9 @@ protected function _sendFile($file, $range)
}

$bufferSize = 8192;
set_time_limit(0);
if (array_search('set_time_limit', explode(',', ini_get('disable_functions'))) === false) {
set_time_limit(0);
}
session_write_close();
while (!feof($file->handle)) {
if (!$this->_isActive()) {
Expand Down

0 comments on commit 52685b3

Please sign in to comment.