Skip to content

Commit

Permalink
Use strpos instead of array_search
Browse files Browse the repository at this point in the history
  • Loading branch information
dhemeier committed Sep 26, 2018
1 parent 52685b3 commit 3cf9fe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Response.php
Expand Up @@ -2708,7 +2708,7 @@ protected function _sendFile($file, $range)
}

$bufferSize = 8192;
if (array_search('set_time_limit', explode(',', ini_get('disable_functions'))) === false) {
if (strpos(ini_get('disable_functions'),'set_time_limit') === false) {
set_time_limit(0);
}
session_write_close();
Expand Down

0 comments on commit 3cf9fe0

Please sign in to comment.