Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Imported from: http://groups.google.com/group/in-portal-dev/browse_thread/thread/e7605f8943ab94fc#

Right now following code is copy-pasted in multiple places in In-Portal:

Code Block
languagephp
set_time_limit(0);

...


ini_set('memory_limit', -1);

I propose, that we can move it into a new function and use it instead in
in all places. Here are the benefits:   -

  • it's auto-completed, so less chances to make typo error in setting name

...

  • we can add parameters to it allowing setting custom memory & time limits

...

  • we can easily track all code, that uses it to determine code, which

...

  • heavily uses system resources

Task: resource_limit_modules.patch

resource_limit_core.patch

Related Tasks

Jira Legacy
serverIn-Portal Issue Tracker
keyINP-1170

Ready for testing.

--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com

resource_limit_modules.patch

resource_limit_core.patch