*/
// no php execution timeout for webdav
-set_time_limit(0);
+if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) {
+ @set_time_limit(0);
+}
ignore_user_abort(true);
// Turn off output buffering to prevent memory problems
*
*/
// no php execution timeout for webdav
-set_time_limit(0);
+if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) {
+ @set_time_limit(0);
+}
ignore_user_abort(true);
// Turn off output buffering to prevent memory problems
require_once __DIR__ . '/lib/base.php';
// set to run indefinitely if needed
- set_time_limit(0);
+ if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) {
+ @set_time_limit(0);
+ }
if (!OC::$CLI) {
echo "This script can be run from the command line only" . PHP_EOL;
*/
use Symfony\Component\EventDispatcher\GenericEvent;
-set_time_limit(0);
+if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) {
+ @set_time_limit(0);
+}
+
require_once '../../lib/base.php';
$l = \OC::$server->getL10N('core');
if (OC::$CLI) {
// set to run indefinitely if needed
- set_time_limit(0);
+ if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) {
+ @set_time_limit(0);
+ }
// the cron job must be executed with the right user
if (!function_exists('posix_getuid')) {
//Let´s try to overwrite some defaults anyway
//try to set the maximum execution time to 60min
- @set_time_limit(3600);
+ if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) {
+ @set_time_limit(3600);
+ }
@ini_set('max_execution_time', 3600);
@ini_set('max_input_time', 3600);
$streamer->sendHeaders($name);
$executionTime = intval(OC::$server->getIniWrapper()->getNumeric('max_execution_time'));
- set_time_limit(0);
+ if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) {
+ @set_time_limit(0);
+ }
ignore_user_abort(true);
if ($getType === self::ZIP_FILES) {
foreach ($files as $file) {
*/
public function startMigration() {
// allow as long execution on the web server as possible
- set_time_limit(0);
+ if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) {
+ @set_time_limit(0);
+ }
try {