Page 1 of 1

Change request: set_time_limit(0)

Posted: Mon Jun 08, 2020 3:08 pm
by kev1n
Hi Steven,

When using a shared hosting environment where the user has no control of the web server, set_time_limit() might be disabled (in php.ini)

Suggestion: Replace

Code: Select all

set_time_limit(0);
https://github.com/steven-copley/nubuil ... on.php#L11

with

Code: Select all

nuSetTimeLimit(0);
Declaration of nuSetTimeLimit():

Code: Select all

function nuSetTimeLimit(){
	if (function_exists('set_time_limit')) {
		set_time_limit(0);
	}
}
A similar code is used in \nudb\libraries\classes\Util.php

Re: Change request: set_time_limit(0)

Posted: Wed Jul 01, 2020 7:37 am
by kev1n
Hi Steven,

Basically, it's just replacing

Code: Select all

set_time_limit(0);
with

Code: Select all

 if (function_exists('set_time_limit')) {
      set_time_limit(0);
 }

Could you add that?

Re: Change request: set_time_limit(0)

Posted: Sun Jul 19, 2020 4:21 pm
by kev1n

Re: Change request: set_time_limit(0)

Posted: Thu Jul 23, 2020 8:59 pm
by admin
.