Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

Change request: set_time_limit(0)

Questions related to using nuBuilder Forte.
Post Reply
kev1n
nuBuilder Team
Posts: 4568
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 532 times
Contact:

Change request: set_time_limit(0)

Unread post 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
kev1n
nuBuilder Team
Posts: 4568
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 532 times
Contact:

Re: Change request: set_time_limit(0)

Unread post 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?
kev1n
nuBuilder Team
Posts: 4568
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 532 times
Contact:

Re: Change request: set_time_limit(0)

Unread post by kev1n »

admin
Site Admin
Posts: 2829
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 30 times

Re: Change request: set_time_limit(0)

Unread post by admin »

.
Post Reply